Hytale Asset ReferenceUnofficial
Versions / 0.5.7 / NPC / Roles / _Core / Tests / Timer / Test_Alarm.json

Test_Alarm

Server/NPC/Roles/_Core/Tests/Timer/Test_Alarm.json, 1.5 KB

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "Sheep",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Alarm",
            "Name": "TestAlarm",
            "State": "Passed",
            "Clear": true
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "Passed"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Alarm",
            "Name": "TestAlarm",
            "State": "Unset"
          },
          "ActionsBlocking": true,
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "Passed"
            },
            {
              "Type": "Timeout",
              "Delay": [ 15, 15 ]
            },
            {
              "Type": "DisplayName",
              "DisplayName": "Waiting"
            },
            {
              "Type": "SetAlarm",
              "Name": "TestAlarm",
              "DurationRange": [ "P1D", "P1D" ]
            }
          ],
          "BodyMotion": {
            "Type": "Wander"
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Alarm.name"
}