Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.9 / NPC / Roles / _Core / Tests_Development / Test_Set_Invulnerable.json

Test_Set_Invulnerable

Server/NPC/Roles/_Core/Tests_Development/Test_Set_Invulnerable.json, 1.2 KB

Fields

FieldType
Typestring
Appearancestring
MotionControllerListarray[1]
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Skeleton_Soldier",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "$Comment": "Blocking list cycles: 5s invulnerable, 5s vulnerable, repeat. Label reflects current state.",
      "Sensor": {
        "Type": "Any"
      },
      "ActionsBlocking": true,
      "Actions": [
        {
          "Type": "SetInvulnerable",
          "Invulnerable": true
        },
        {
          "Type": "DisplayName",
          "DisplayName": "Invulnerable"
        },
        {
          "Type": "Timeout",
          "Delay": [ 5, 5 ]
        },
        {
          "Type": "SetInvulnerable",
          "Invulnerable": false
        },
        {
          "Type": "DisplayName",
          "DisplayName": "Vulnerable"
        },
        {
          "Type": "Timeout",
          "Delay": [ 5, 5 ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Set_Invulnerable.name"
}