Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9.2 / NPC / Roles / _Core / Tests / Test_Delay.json

Test_Delay

Server/NPC/Roles/_Core/Tests/Test_Delay.json, 1.2 KB

Fields

FieldType
Typestring
Appearancestring
DisableDamageGroupsarray[1]
HotbarItemsarray[1]
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Mannequin",
  "DisableDamageGroups": [ "Self" ],
  "HotbarItems": [ "Weapon_Longsword_Copper" ],
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 6,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10,
      "MaxRotationSpeed": 360,
      "ClimbSpeedMult": 0.125
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 10
          },
          "Actions": [
            {
              "Type": "Sequence",
              "Blocking": true,
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 5, 10 ]
                },
                {
                  "Type": "DisplayName",
                  "DisplayName": "DelayOver"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Delay.name"
}