Hytale Asset ReferenceUnofficial
Versions / 0.5.6 / NPC / Roles / _Core / Tests / Groups / Test_Group_Wolf.json

Test_Group_Wolf

Server/NPC/Roles/_Core/Tests/Groups/Test_Group_Wolf.json, 2.9 KB

Fields

FieldType
Typestring
Appearancestring
ApplySeparationboolean
SeparationDistancenumber
SeparationWeightnumber
SeparationDistanceTargetnumber
SeparationNearRadiusTargetnumber
SeparationFarRadiusTargetnumber
DisableDamageGroupsarray[1]
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[2]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Wolf_Black",
  "ApplySeparation": true,
  "SeparationDistance": 2,
  "SeparationWeight": 1,
  "SeparationDistanceTarget": 0.5,
  "SeparationNearRadiusTarget": 1,
  "SeparationFarRadiusTarget": 5,
  "DisableDamageGroups": [ "Neutral" ],
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 10,
      "Gravity": 10,
      "MaxFallSpeed": 8,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Continue": true,
      "Instructions": [
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 4,
            "Filters": [
              {
                "Type": "NPCGroup",
                "IncludeGroups": [ "Zombie", "Skeleton" ]
              }
            ]
          },
          "Tag": "big_threat",
          "BodyMotion": {
            "Type": "Flee",
            "SlowDownDistance": 12,
            "StopDistance": 14,
            "RelativeSpeed": 1
          }
        },
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 6,
            "Filters": [
              {
                "Type": "NPCGroup",
                "IncludeGroups": [ "Critters" ]
              }
            ]
          },
          "Tag": "threat",
          "BodyMotion": {
            "Type": "Flee",
            "SlowDownDistance": 7,
            "StopDistance": 8,
            "RelativeSpeed": 0.5
          }
        },
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 30,
            "Filters": [
              {
                "Type": "NPCGroup",
                "IncludeGroups": [ "Tests" ]
              }
            ]
          },
          "Tag": "prey",
          "BodyMotion": {
            "Type": "Seek",
            "SlowDownDistance": 3,
            "StopDistance": 2,
            "RelativeSpeed": 1
          }
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Tag": "idle",
          "BodyMotion": {
            "Type": "WanderInCircle"
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 3,
            "Filters": [
              {
                "Type": "NPCGroup",
                "IncludeGroups": [ "Tests" ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Root_NPC_Attack_Melee"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "Nothing"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Group_Wolf.name"
}