Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1.1 / NPC / Roles / _Core / Tests / Test_Random_Sensor.json

Test_Random_Sensor

Server/NPC/Roles/_Core/Tests/Test_Random_Sensor.json, 1.1 KB

Fields

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

Source

{
  "$Comment": "DisplayState",
  "Type": "Generic",
  "Appearance": "Mannequin",
  "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": "Random",
            "TrueDurationRange": [ 1, 2 ],
            "FalseDurationRange": [ 3, 3 ]
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "True"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "False"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Random_Sensor.name"
}