Hytale Asset ReferenceUnofficial
Versions / 0.5.4 / Item / Interactions / NPCs / Undead / Zombie_Sand / Zombie_Sand_Swing_Left.json

Zombie_Sand_Swing_Left

Server/Item/Interactions/NPCs/Undead/Zombie_Sand/Zombie_Sand_Swing_Left.json, 1.7 KB

Fields

FieldType
Typestring
Effectsobject
$Commentstring
RunTimenumber
Nextobject

Source

{
  "Type": "Simple",
  "Effects": {
    "ItemPlayerAnimationsId": "Zombie_Default",
    "ItemAnimationId": "SwingLeft"
  },
  "$Comment": "Prepare Delay",
  "RunTime": 0.2,
  "Next": {
    "Type": "Parallel",
    "$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
    "Interactions": [
      {
        "Interactions": [
          {
            "Type": "Selector",
            "$Comment": "Length of Combat",
            "RunTime": 0.083,
            "Selector": {
              "Id": "Horizontal",
              "Direction": "ToLeft",
              "TestLineOfSight": true,
              "ExtendTop": 0.5,
              "ExtendBottom": 0.5,
              "StartDistance": 0.5,
              "EndDistance": 2,
              "Length": 90,
              "RollOffset": 15,
              "YawStartOffset": -45
            },
            "HitEntity": {
              "Interactions": [
                {
                  "Type": "Replace",
                  "DefaultValue": {
                    "Interactions": [
                      "NPC_Attack_Melee_Damage"
                    ]
                  },
                  "Var": "Melee_Damage"
                }
              ]
            },
            "Next": {
              "Type": "Simple",
              "$Comment": "Pad the interaction length",
              "RunTime": 0.217
            }
          }
        ]
      },
      {
        "Interactions": [
          {
            "Type": "Simple",
            "$Comment": "Length of Effect",
            "RunTime": 0.167,
            "Effects": {
              "WorldSoundEventId": "SFX_Zombie_Attack_Swing"
            }
          }
        ]
      }
    ]
  }
}