Test_Eval_IsEmpty
Server/NPC/Roles/_Core/Tests/Test_Eval_IsEmpty.json, 1019 B
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
Parameters | object |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Zombie",
"Parameters": {
"StringValue": {
"Value": "SomeString",
"Description": "The component to use"
},
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 2,
"RunThreshold": 0.7,
"RunThresholdRange": 0.1,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10,
"MaxClimbHeight": 1,
"DescendFlatness": 0.7,
"DescendSpeedCompensation": 0.5
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Instructions": [
{
"Instructions": [
{
"Enabled": { "Compute": "isEmpty(StringValue)" },
"Sensor": {
"Type": "Player",
"Range": 10
},
"BodyMotion": {
"Type": "Flee"
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Eval_IsEmpty.name"
}