Test_Attack_Bow
Server/NPC/Roles/_Core/Tests/Combat/Test_Attack_Bow.json, 1.5 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
HotbarItems | array[1] |
DisableDamageGroups | array[2] |
OverrideHeadPitchAngle | boolean |
HeadPitchAngleRange | array[2] |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"HotbarItems": [ "Weapon_Shortbow_Crude" ],
"DisableDamageGroups": [ "Self", "Player" ],
"OverrideHeadPitchAngle": true,
"HeadPitchAngleRange": [ -89, 89 ],
"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": true,
"Range": 40,
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"HeadMotion": {
"Type": "Aim",
"Spread": 0,
"HitProbability": 1,
"Deflection": true
},
"Actions": [
{
"Type": "Attack",
"Attack": "Skeleton_Archer_Bow_Shoot",
"BallisticMode": "Short",
"AimingTimeRange": [ 3, 3 ],
"LineOfSight": true,
"AvoidFriendlyFire": true,
"AttackPauseRange": [ 1, 1 ]
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Attack_Bow.name"
}