Test_Path_Distance1
Server/NPC/Roles/_Core/Tests/Paths/Test_Path_Distance1.json, 1.3 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
$Comment | string |
CollisionDistance | number |
CollisionForceFalloff | number |
CollisionRadius | number |
EntityAvoidanceStrength | number |
ApplyAvoidance | boolean |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[2] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"$Comment": "SteeringRole",
"CollisionDistance": 5,
"CollisionForceFalloff": 0.25,
"CollisionRadius": 0.5,
"EntityAvoidanceStrength": 0.05,
"ApplyAvoidance": true,
"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": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Path",
"PathType": "WorldPath",
"Path": "red, green, blue, yellow"
},
"BodyMotion": {
"Type": "Path",
"MinRelSpeed": 0.5,
"MaxRelSpeed": 0.5,
"Shape": "Loop",
"Direction": "Random"
}
}
]
},
{
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Nothing"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Path_Distance1.name"
}