Hytale Asset ReferenceUnofficial
Versions / 0.5.6 / NPC / Roles / Elemental / Spirit / Component_Instruction_Attack_Sequence_Spirit.json

Component_Instruction_Attack_Sequence_Spirit

Server/NPC/Roles/Elemental/Spirit/Component_Instruction_Attack_Sequence_Spirit.json, 868 B

Fields

FieldType
Classstring
Interfacestring
Parametersobject
Contentobject
Typestring

Source

{
  "Class": "Instruction",
  "Interface": "Hytale.Instruction.AttackSequence",
  "Parameters": {
    "AttackDistance": {
      "Value": 2,
      "Description": "The distance at which an NPC will execute attacks"
    },
    "CombatRelativeTurnSpeed": {
      "Value": 1.5,
      "Description": "Modifier that decides turn speed difference in combat"
    }
  },
  "Content": {
    "Sensor": {
      "Type": "Target",
      "Range": { "Compute": "AttackDistance" },
      "Filters": [
        {
          "Type": "LineOfSight"
        }
      ]
    },
    "ActionsBlocking": true,
    "Actions": [
      {
        "Type": "Attack",
        "Attack": "Spirit_Root_Spore_Gas",
        "AttackPauseRange": [ 1, 2 ]
      }
    ],
    "HeadMotion": {
      "Type": "Aim",
      "RelativeTurnSpeed": { "Compute": "CombatRelativeTurnSpeed" }
    }
  },
  "Type": "Component"
}