Test_Separation_Flee
Server/NPC/Roles/_Core/Tests_Development/Test_Separation_Flee.json, 1.1 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
Debug | string |
ApplySeparation | boolean |
AvoidanceFallCheck | boolean |
SeparationDistance | number |
SeparationMode | string |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"Debug": "PathFinder",
"ApplySeparation": true,
"AvoidanceFallCheck": true,
"SeparationDistance": 3,
"SeparationMode": "Push",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 5,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10,
"MaxClimbHeight": 1.3
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 8,
"Filters": [
{
"Type": "ViewSector",
"ViewSector": 360
}
]
},
"BodyMotion": {
"Type": "Flee",
"StopDistance": 10,
"SlowDownDistance": 6,
"Falloff": 3
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Separation_Flee.name"
}