Test_Set_Invulnerable
Server/NPC/Roles/_Core/Tests_Development/Test_Set_Invulnerable.json, 1.2 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Skeleton_Soldier",
"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": [
{
"$Comment": "Blocking list cycles: 5s invulnerable, 5s vulnerable, repeat. Label reflects current state.",
"Sensor": {
"Type": "Any"
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "SetInvulnerable",
"Invulnerable": true
},
{
"Type": "DisplayName",
"DisplayName": "Invulnerable"
},
{
"Type": "Timeout",
"Delay": [ 5, 5 ]
},
{
"Type": "SetInvulnerable",
"Invulnerable": false
},
{
"Type": "DisplayName",
"DisplayName": "Vulnerable"
},
{
"Type": "Timeout",
"Delay": [ 5, 5 ]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Set_Invulnerable.name"
}