Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9.2 / NPC / Roles / _Core / Tests / Motion / Test_Dive_Flee.json

Test_Dive_Flee

Server/NPC/Roles/_Core/Tests/Motion/Test_Dive_Flee.json, 1.2 KB

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "Bluegill",
  "BreathesInAir": false,
  "BreathesInWater": true,
  "Debug": "PathFinder",
  "MotionControllerList": [
    {
      "Type": "Dive",
      "MaxSwimSpeed": 3,
      "Acceleration": 3,
      "MaxDiveSpeed": 8,
      "SwimDepth": 0.6,
      "SinkRatio": 0.5,
      "MinDiveDepth": 0,
      "MaxDiveDepth": 1000000000,
      "MinDepthAboveGround": 1,
      "MinDepthBelowSurface": 1,
      "Gravity": 10,
      "MaxRotationSpeed": 360,
      "MaxSwimTurnAngle": 90
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 8,
            "Filters": [
              {
                "Type": "ViewSector",
                "ViewSector": 0
              }
            ]
          },
          "BodyMotion": {
            "Type": "Flee",
            "StopDistance": 10,
            "SlowDownDistance": 6,
            "Falloff": 3,
            "Debug": ""
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Dive_Flee.name"
}