Test_Spots_Me_Sheep
Server/NPC/Roles/_Core/Tests/Test_Spots_Me_Sheep.json, 2.0 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
CollisionDistance | number |
CollisionForceFalloff | number |
CollisionRadius | number |
EntityAvoidanceStrength | number |
ApplyAvoidance | boolean |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[2] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"CollisionDistance": 3,
"CollisionForceFalloff": 0.25,
"CollisionRadius": 0.2,
"EntityAvoidanceStrength": 0.29,
"ApplyAvoidance": true,
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 13,
"Gravity": 10,
"MaxFallSpeed": 15,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"BodyMotion": {
"Type": "Nothing"
}
}
]
},
{
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 10,
"LockOnTarget": true
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Filters": [
{
"Type": "SpotsMe",
"ViewAngle": 90,
"ViewTest": "View_Cone"
}
]
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "Spotted"
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "Not Spotted"
}
]
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "Not Spotted"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Spots_Me_Sheep.name"
}