Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.8.1 / Item / Interactions / Weapons / Common / Melee / Common_Melee_Selector.json

Common_Melee_Selector

Server/Item/Interactions/Weapons/Common/Melee/Common_Melee_Selector.json, 1.5 KB

Fields

FieldType
Typestring
$Commentstring
RunTimenumber
Effectsobject
Selectorobject
HitBlockobject
HitEntityobject
Nextobject

Source

{
  "Type": "Selector",
  "$Comment": "Length of Combat",
  "RunTime": 0.05,
  "Effects": {
    "Trails": [
      {
        "PositionOffset": {
          "X": 1.3,
          "Y": 0,
          "Z": 0
        },
        "TargetNodeName": "Handle",
        "TrailId": "Medium_Sword_Basic",
        "RotationOffset": {
          "Roll": 90.0
        }
      },
      {
        "PositionOffset": {
          "X": 1.7,
          "Y": 0,
          "Z": 0
        },
        "TargetNodeName": "Handle",
        "TrailId": "Sword_Distortion",
        "RotationOffset": {
          "Roll": 90.0
        }
      }
    ],
    "WorldSoundEventId": "SFX_Light_Melee_T2_Swing",
    "LocalSoundEventId": "SFX_Sword_T2_Swing_LR_Local",
    "CameraEffect": "Sword_Swing_Diagonal_Right"
  },
  "Selector": {
    "Id": "Horizontal",
    "Direction": "ToLeft",
    "TestLineOfSight": true,
    "ExtendTop": 0.5,
    "ExtendBottom": 0.5,
    "StartDistance": 0.1,
    "EndDistance": 2.25,
    "Length": 90,
    "RollOffset": 0,
    "YawStartOffset": -60
  },
  "HitBlock": {
    "Interactions": [
      "Block_Break_Adventure"
    ]
  },
  "HitEntity": {
    "Interactions": [
      {
        "Type": "Replace",
        "DefaultOk": true,
        "DefaultValue": {
          "Interactions": [
            "Common_Melee_Damage"
          ]
        },
        "Var": "Melee_ToLeft_Damage"
      }
    ]
  },
  "Next": {
    "Type": "Simple",
    "$Comment": "Pad the interaction length",
    "RunTime": 0.107
  }
}