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

Test_Eval_IsEmpty

Server/NPC/Roles/_Core/Tests/Test_Eval_IsEmpty.json, 1019 B

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "Zombie",
  "Parameters": {
    "StringValue": {
      "Value": "SomeString",
      "Description": "The component to use"
    },
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 2,
      "RunThreshold": 0.7,
      "RunThresholdRange": 0.1,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10,
      "MaxClimbHeight": 1,
      "DescendFlatness": 0.7,
      "DescendSpeedCompensation": 0.5
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Instructions": [
    {
      "Instructions": [
        {
          "Enabled": { "Compute": "isEmpty(StringValue)" },
          "Sensor": {
            "Type": "Player",
            "Range": 10
          },
          "BodyMotion": {
            "Type": "Flee"
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Eval_IsEmpty.name"
}