Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1 / NPC / Roles / _Core / Tests / Test_Sensor_Height.json

Test_Sensor_Height

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

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "PlayerTestModel_V",
  "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": "Player",
            "Range": 10,
            "Filters": [
              {
                "Type": "HeightDifference",
                "HeightDifference": [ -2, 2 ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "In height range"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "Out of height range"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Sensor_Height.name"
}