Hytale Asset ReferenceUnofficial
Versions / 0.4.1 / NPC / Roles / _Core / Tests / Test_Position_Adjustment_Wrapper.json

Test_Position_Adjustment_Wrapper

Server/NPC/Roles/_Core/Tests/Test_Position_Adjustment_Wrapper.json, 2.0 KB

Fields

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

Source

{
  "DefaultSubState": "Start",
  "Type": "Generic",
  "Appearance": "Sheep",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "RunThreshold": 0.7,
      "RunThresholdRange": 0.1,
      "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": "AdjustPosition",
            "Offset": [ 2, 0, 2 ],
            "Sensor": {
              "Type": "Block",
              "Range": 20,
              "Blocks": "Gaia",
              "Random": true
            }
          },
          "Instructions": [
            {
              "Sensor": {
                "Type": "AdjustPosition",
                "Offset": [ 2, 0, 2 ],
                "Sensor": {
                  "Type": "Block",
                  "Range": 3,
                  "Blocks": "Gaia",
                  "Random": true
                }
              },
              "Actions": [
                {
                  "Type": "Timeout",
                  "Delay": [ 3, 3 ],
                  "Action": {
                    "Type": "ResetBlockSensors",
                    "BlockSets": [ "Gaia" ]
                  }
                }
              ]
            },
            {
              "Sensor": {
                "Type": "AdjustPosition",
                "Offset": [ 2, 0, 2 ],
                "Sensor": {
                  "Type": "Block",
                  "Range": 20,
                  "Blocks": "Gaia",
                  "Random": true
                }
              },
              "BodyMotion": {
                "Type": "Seek",
                "StopDistance": 1
              }
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Position_Adjustment_Wrapper.name"
}