Test_Guided_Bow
Server/NPC/Roles/_Core/Tests/Combat/Test_Guided_Bow.json, 3.0 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
HotbarItems | array[1] |
DisableDamageGroups | array[1] |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[2] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Trork_Hunter",
"HotbarItems": [ "Weapon_Shortbow_Crude" ],
"DisableDamageGroups": [ "Self" ],
"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": [
{
"Continue": true,
"Instructions": [
{
"Sensor": {
"Type": "Mob",
"GetNPCs": true,
"GetPlayers": false,
"Range": 40,
"Filters": [
{
"Type": "LineOfSight"
},
{
"Type": "NPCGroup",
"ExcludeGroups": [ "Self", "Player" ]
}
]
},
"HeadMotion": {
"Type": "Aim",
"Spread": 0,
"HitProbability": 1,
"Deflection": true
}
}
]
},
{
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 4,
"Filters": [
{
"Type": "ItemInHand",
"Items": [ "Weapon_Shortbow_Crude" ]
}
]
},
"Actions": [
{
"Type": "Attack",
"Attack": "Skeleton_Archer_Bow_Shoot",
"BallisticMode": "Long",
"AimingTimeRange": [ 3, 3 ],
"LineOfSight": false,
"AvoidFriendlyFire": false,
"AttackPauseRange": [ 1, 1 ]
}
]
},
{
"Sensor": {
"Type": "Player",
"Range": 4,
"Filters": [
{
"Type": "ItemInHand",
"Items": [ "Weapon_Sword_Iron" ]
}
]
},
"Actions": [
{
"Type": "Attack",
"Attack": "Skeleton_Archer_Bow_Shoot",
"BallisticMode": "Short",
"AimingTimeRange": [ 3, 3 ],
"LineOfSight": false,
"AvoidFriendlyFire": false,
"AttackPauseRange": [ 1, 1 ]
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Attack",
"Attack": "Skeleton_Archer_Bow_Shoot",
"BallisticMode": "Short",
"AimingTimeRange": [ 3, 3 ],
"LineOfSight": true,
"AttackPauseRange": [ 1, 1 ]
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Nothing"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Guided_Bow.name"
}