Test_Separation_Wander
Server/NPC/Roles/_Core/Tests_Development/Test_Separation_Wander.json, 1.3 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
ApplySeparation | boolean |
SeparationDistance | number |
SeparationMode | string |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"ApplySeparation": true,
"SeparationDistance": 2,
"SeparationMode": "Push",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 8,
"Acceleration": 10
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"BodyMotion": {
"Type": "Sequence",
"Looped": true,
"Motions": [
{
"Type": "Timer",
"Time": [ 2, 5 ],
"Motion": {
"Type": "WanderInRect",
"Width": 10,
"Depth": 10,
"MaxHeadingChange": 135
}
},
{
"Type": "Timer",
"Time": [ 3, 5 ],
"Motion": {
"Type": "Nothing"
}
}
]
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Separation_Wander.name"
}