Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9.1 / Item / Interactions / Weapons / Spear / Attacks / Throw_Charged / Spear_Throw_Charged.json

Spear_Throw_Charged

Server/Item/Interactions/Weapons/Spear/Attacks/Throw_Charged/Spear_Throw_Charged.json, 841 B

Fields

FieldType
Typestring
Effectsobject
$Commentstring
RunTimenumber
Nextobject

Source

{
  "Type": "Simple",
  "Effects": {
    "ItemAnimationId": "ThrowCharged",
    "LocalSoundEventId": "SFX_Spear_Throw_Local",
    "WorldSoundEventId": "SFX_Spear_Throw"
  },
  "$Comment": "Prepare Delay",
  "RunTime": 0,
  "Next": {
    "Type": "Parallel",
    "$Comment": "Make sure this parallel interaction is needed and can't be optimized away",
    "Interactions": [
      {
        "Interactions": [
          {
            "Type": "Replace",
            "DefaultValue": {
              "Interactions": [
                "Spear_Throw_Charged_Projectile"
              ]
            },
            "Var": "Spear_Throw_Charged_Projectile"
          }
        ]
      },
      {
        "Interactions": [
          {
            "Type": "ModifyInventory",
            "AdjustHeldItemQuantity": -1
          }
        ]
      }
    ]
  }
}