Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1.1 / NPC / Roles / _Core / Tests_Development / Test_Weapon_Attack.json

Test_Weapon_Attack

Server/NPC/Roles/_Core/Tests_Development/Test_Weapon_Attack.json, 1.1 KB

Fields

FieldType
Typestring
Appearancestring
HotbarItemsarray[1]
DisableDamageGroupsarray[2]
MotionControllerListarray[1]
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

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"
}