Test_Shooter
Server/NPC/Roles/_Core/Tests/Combat/Test_Shooter.json, 2.6 KB
Fields
| Field | Type |
|---|---|
Debug | string |
Type | string |
Appearance | string |
StartState | string |
DisableDamageGroups | array[1] |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Debug": "DisplayState",
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"StartState": "Idle",
"DisableDamageGroups": [ "Self" ],
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10,
"MinHover": 1.5,
"MaxHover": 1.7,
"HoverFreq": 0.33
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Idle"
},
"Instructions": [
{
"$Comment": "Animations",
"Continue": true,
"Sensor": {
"Type": "Any",
"Once": true
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status"
}
]
},
{
"Sensor": {
"Type": "Player",
"Range": 10,
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"Actions": [
{
"Type": "State",
"State": "Attack"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Attack"
},
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 10,
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"Actions": [
{
"Type": "Attack",
"Attack": "Test_Projectile"
}
]
},
{
"Sensor": {
"Type": "Not",
"Sensor": {
"Type": "Player",
"Range": 10,
"Filters": [
{
"Type": "LineOfSight"
}
]
}
},
"Actions": [
{
"Type": "State",
"State": "Idle"
}
]
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Shooter.name"
}