Test_Bow_Charge
Server/NPC/Roles/_Core/Tests_Development/Test_Bow_Charge.json, 1.7 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
HotbarItems | array[1] |
DisableDamageGroups | array[1] |
PossibleInventoryItems | string |
PickupDropOnDeath | boolean |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"HotbarItems": [ "Weapon_Shortbow_Crude" ],
"DisableDamageGroups": [ "Self" ],
"PossibleInventoryItems": "Drop_Arrows",
"PickupDropOnDeath": true,
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "Mob",
"GetNPCs": true,
"GetPlayers": true,
"Range": 40,
"Filters": [
{
"Type": "LineOfSight"
}
]
},
"HeadMotion": {
"Type": "Aim",
"Spread": 0,
"HitProbability": 1,
"Deflection": true
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "Attack",
"ChargeFor": 3,
"AimingTimeRange": [ 3, 3 ],
"AttackType": "Secondary"
},
{
"Type": "Attack",
"AimingTimeRange": [ 3, 3 ],
"ChargeFor": 0.3,
"AttackType": "Secondary",
"AttackPauseRange": [ 1, 1 ]
},
{
"Type": "Attack",
"AimingTimeRange": [ 3, 3 ],
"ChargeFor": 0.7,
"AttackType": "Secondary",
"AttackPauseRange": [ 1, 1 ]
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Bow_Charge.name"
}