Test_Weapon_Attack
Server/NPC/Roles/_Core/Tests_Development/Test_Weapon_Attack.json, 1.1 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
HotbarItems | array[1] |
DisableDamageGroups | array[2] |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "PlayerTestModel_V",
"HotbarItems": [ "Weapon_Sword_Iron" ],
"DisableDamageGroups": [ "Self", "Player" ],
"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
},
"Actions": [
{
"Type": "Attack",
"AttackPauseRange": [ 1, 1 ]
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Weapon_Attack.name"
}