Test_Sensor_Height
Server/NPC/Roles/_Core/Tests/Test_Sensor_Height.json, 1.2 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"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,
"Filters": [
{
"Type": "HeightDifference",
"HeightDifference": [ -2, 2 ]
}
]
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "In height range"
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "Out of height range"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Sensor_Height.name"
}