Hytale Asset ReferenceUnofficial
Versions / 0.5.2 / Item / Interactions / Weapons / Unarmed / Attacks / Swing_Right / Unarmed_Swing_Right.json

Unarmed_Swing_Right

Server/Item/Interactions/Weapons/Unarmed/Attacks/Swing_Right/Unarmed_Swing_Right.json, 1.9 KB

Fields

FieldType
Typestring
Effectsobject
RunTimenumber
Nextobject

Source

{
  "Type": "Simple",
  "Effects": {
    "ItemAnimationId": "SwingRight",
    "WorldSoundEventId": "SFX_Unarmed_Swing",
    "LocalSoundEventId": "SFX_Player_Unarmed_Swing_Right"
  },
  "RunTime": 0.111,
  "Next": {
    "Type": "Parallel",
    "$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
    "Interactions": [
      {
        "Interactions": [
          {
            "Type": "Selector",
            "Effects": {
              "CameraEffect": "Unarmed_Swing_Horizontal"
            },
            "$Comment": "Length of Combat",
            "RunTime": 0.25,
            "Selector": {
              "Id": "Horizontal",
              "Direction": "ToRight",
              "TestLineOfSight": true,
              "ExtendTop": 0.5,
              "ExtendBottom": 0.5,
              "StartDistance": 0.1,
              "EndDistance": 2.5,
              "Length": 30,
              "RollOffset": 0,
              "YawStartOffset": -15
            },
            "HitEntity": {
              "Interactions": [
                {
                  "Type": "DamageEntity",
                  "DamageCalculator": {
                    "BaseDamage": {
                      "Physical": 1
                    }
                  },
                  "Effects": {
                    "CameraEffect": "Impact_Light"
                  },
                  "DamageEffects": {
                    "WorldSoundEventId": "SFX_Unarmed_Impact",
                    "WorldParticles": [
                      {
                        "SystemId": "Impact_Unarmed"
                      }
                    ]
                  }
                }
              ]
            }
          }
        ]
      },
      {
        "Interactions": [
          {
            "Type": "Condition",
            "RequiredGameMode": "Adventure",
            "Next": "Block_Break"
          }
        ]
      }
    ]
  }
}