Test_Wolf_Pack
Server/NPC/Roles/_Core/Tests/Test_Wolf_Pack.json, 3.4 KB
Fields
| Field | Type |
|---|---|
Type | string |
Debug | string |
Appearance | string |
ApplyAvoidance | boolean |
ApplySeparation | boolean |
FlockAllowedNPC | array[1] |
FlockCanLead | boolean |
FlockInfluenceRange | number |
CollisionViewAngle | number |
SeparationDistance | number |
SeparationWeight | number |
SeparationDistanceTarget | number |
SeparationNearRadiusTarget | number |
SeparationFarRadiusTarget | number |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[2] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Debug": "",
"Appearance": "Wolf_Black",
"ApplyAvoidance": false,
"ApplySeparation": true,
"FlockAllowedNPC": [ "Test_Wolf_Pack" ],
"FlockCanLead": true,
"FlockInfluenceRange": 4,
"CollisionViewAngle": 0,
"SeparationDistance": 3,
"SeparationWeight": 1,
"SeparationDistanceTarget": 0.5,
"SeparationNearRadiusTarget": 1,
"SeparationFarRadiusTarget": 5,
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 7,
"Gravity": 10,
"MaxFallSpeed": 8,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Mob",
"Range": 32,
"OnlyLockedTarget": true
},
"Tag": "Seeking target",
"BodyMotion": {
"Type": "Seek",
"SlowDownDistance": 4,
"StopDistance": 2
}
},
{
"Sensor": {
"Type": "And",
"Sensors": [
{
"Type": "FlockLeader"
},
{
"Type": "Self",
"Filters": [
{
"Type": "Flock",
"FlockStatus": "Member"
}
]
}
]
},
"BodyMotion": {
"Type": "Seek",
"SlowDownDistance": 7,
"StopDistance": 4
}
},
{
"Sensor": {
"Type": "Any"
},
"BodyMotion": {
"Type": "Nothing"
}
}
]
},
{
"Instructions": [
{
"Sensor": {
"Type": "Self",
"Filters": [
{
"Type": "Flock",
"FlockPlayerStatus": "NotMember"
}
]
},
"Tag": "Not in flock",
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 3,
"Filters": [
{
"Type": "Flock",
"FlockStatus": "NotMember"
},
{
"Type": "ViewSector",
"ViewSector": 30
}
]
},
"Tag": "Joining player",
"Actions": [
{
"Type": "JoinFlock",
"ForceJoin": true
}
]
}
]
},
{
"Sensor": {
"Type": "InflictedDamage",
"Target": "FlockLeader"
},
"Tag": "Setting flock target",
"Actions": [
{
"Type": "FlockTarget"
}
]
},
{
"Sensor": {
"Type": "Mob",
"Range": 2,
"OnlyLockedTarget": true
},
"Tag": "Attacking",
"Actions": [
{
"Type": "Attack",
"Attack": "Root_NPC_Attack_Melee"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Wolf_Pack.name"
}