Test_Throw_NPC
Server/NPC/Roles/_Core/Tests/Test_Throw_NPC.json, 1.1 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
DisplayNames | array[1] |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"DisplayNames": [ "Normal Sheep" ],
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"RunThreshold": 0.7,
"RunThresholdRange": 0.1,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 10
},
"Actions": [
{
"Type": "Timeout",
"Delay": [ 2, 2 ],
"Action": {
"Type": "Spawn",
"CountRange": [ 1, 1 ],
"Kind": "Spider",
"LaunchAtTarget": true,
"LaunchSpread": 1
}
}
],
"HeadMotion": {
"Type": "Watch"
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Throw_NPC.name"
}