Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.4 / NPC / Roles / _Core / Tests_Development / Test_Patrol_Path.json

Test_Patrol_Path

Server/NPC/Roles/_Core/Tests_Development/Test_Patrol_Path.json, 1.4 KB

Fields

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

Source

{
  "Comment": "DisplayState",
  "$Comment": "MotionControllerMove, Collisions, BlockCollisions",
  "Type": "Generic",
  "Appearance": "Mannequin",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 5,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10,
      "MaxClimbHeight": 1,
      "JumpHeight": 1.5,
      "MinJumpHeight": 1,
      "JumpForce": 1.5,
      "JumpDescentSteepness": 1,
      "DescentAnimationType": "Fall",
      "DescentSteepness": 2.5,
      "DescentBlending": 1
    }
  ],
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Path",
            "PathType": "AnyPrefabPath"
          },
          "HeadMotion": {
            "Type": "Observe",
            "AngleRange": [ -90, 90 ],
            "PauseTimeRange": [ 1, 1 ],
            "PickRandomAngle": true
          },
          "BodyMotion": {
            "Type": "Path",
            "UseNodeViewDirection": true,
            "PickRandomAngle": true
          }
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "BodyMotion": {
            "Type": "Wander"
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Patrol_Path.name"
}