Test_Maintain_Distance
Server/NPC/Roles/_Core/Tests_Development/Test_Maintain_Distance.json, 1.3 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
HotbarItems | array[1] |
DisableDamageGroups | array[1] |
PossibleInventoryItems | string |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Skeleton",
"HotbarItems": [ "Weapon_Shortbow_Crude" ],
"DisableDamageGroups": [ "Self" ],
"PossibleInventoryItems": "Drop_Arrows",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Continue": true,
"Sensor": {
"Type": "Player",
"Range": 15
},
"HeadMotion": {
"Type": "Aim",
"Spread": 0,
"HitProbability": 1,
"Deflection": true
}
},
{
"Sensor": {
"Type": "Player",
"Range": 15
},
"BodyMotion": {
"Type": "MaintainDistance",
"DesiredDistanceRange": [ 5, 10 ],
"TargetDistanceFactor": 0.5,
"RelativeForwardsSpeed": 1,
"RelativeBackwardsSpeed": 0.5,
"StrafingDurationRange": [ 0.5, 1 ]
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Maintain_Distance.name"
}