Test_Random_Sensor
Server/NPC/Roles/_Core/Tests/Test_Random_Sensor.json, 1.1 KB
Fields
| Field | Type |
|---|---|
$Comment | string |
Type | string |
Appearance | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"$Comment": "DisplayState",
"Type": "Generic",
"Appearance": "Mannequin",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "Random",
"TrueDurationRange": [ 1, 2 ],
"FalseDurationRange": [ 3, 3 ]
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "True"
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "False"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Random_Sensor.name"
}