Test_Path_View
Server/NPC/Roles/_Core/Tests/Paths/Test_Path_View.json, 1.7 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[2] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 2,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Eval",
"Expression": "blocked"
},
"BodyMotion": {
"Type": "Timer",
"Time": [ 2, 5 ],
"Motion": {
"Type": "Wander",
"MaxHeadingChange": 180
}
}
},
{
"Sensor": {
"Type": "Path",
"PathType": "WorldPath",
"Path": "p1, p2, p3, p2"
},
"BodyMotion": {
"Type": "Path",
"Shape": "Loop",
"Direction": "Forward",
"StartAtNearestNode": true,
"PathWidth": 0,
"NodeWidth": 0.1,
"MinRelSpeed": 0.8,
"MaxRelSpeed": 1,
"MinWalkDistance": 2,
"MaxWalkDistance": 5,
"MinNodeDelay": 2,
"MaxNodeDelay": 6,
"UseNodeViewDirection": true
}
}
]
},
{
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Nothing"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Path_View.name"
}