Test_Beacon_Player
Server/NPC/Roles/_Core/Tests/Beacons/Test_Beacon_Player.json, 2.3 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
StartState | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"StartState": "Idle",
"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": "State",
"State": "Idle"
},
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 10,
"LockOnTarget": true
},
"Actions": [
{
"Type": "Beacon",
"Message": "Alert",
"Range": 40,
"TargetGroups": [ "Tests" ],
"ExpirationTime": 0.5,
"SendTargetSlot": "LockedTarget"
}
],
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Type": "Beacon",
"Message": "Alert",
"Range": 40,
"TargetSlot": "LockedTarget"
},
"Actions": [
{
"Type": "State",
"State": "Chase"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Chase"
},
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 10
},
"Actions": [
{
"Type": "State",
"State": "Idle"
}
]
},
{
"Sensor": {
"Type": "Target"
},
"BodyMotion": {
"Type": "Seek",
"StopDistance": 5
}
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Beacon_Player.name"
}