Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.5 / NPC / Roles / _Core / Tests / Test_Wolf_Pack.json

Test_Wolf_Pack

Server/NPC/Roles/_Core/Tests/Test_Wolf_Pack.json, 3.4 KB

Fields

FieldType
Typestring
Debugstring
Appearancestring
ApplyAvoidanceboolean
ApplySeparationboolean
FlockAllowedNPCarray[1]
FlockCanLeadboolean
FlockInfluenceRangenumber
CollisionViewAnglenumber
SeparationDistancenumber
SeparationWeightnumber
SeparationDistanceTargetnumber
SeparationNearRadiusTargetnumber
SeparationFarRadiusTargetnumber
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[2]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Debug": "",
  "Appearance": "Wolf_Black",
  "ApplyAvoidance": false,
  "ApplySeparation": true,
  "FlockAllowedNPC": [ "Test_Wolf_Pack" ],
  "FlockCanLead": true,
  "FlockInfluenceRange": 4,
  "CollisionViewAngle": 0,
  "SeparationDistance": 3,
  "SeparationWeight": 1,
  "SeparationDistanceTarget": 0.5,
  "SeparationNearRadiusTarget": 1,
  "SeparationFarRadiusTarget": 5,
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 7,
      "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": 32,
            "OnlyLockedTarget": true
          },
          "Tag": "Seeking target",
          "BodyMotion": {
            "Type": "Seek",
            "SlowDownDistance": 4,
            "StopDistance": 2
          }
        },
        {
          "Sensor": {
            "Type": "And",
            "Sensors": [
              {
                "Type": "FlockLeader"
              },
              {
                "Type": "Self",
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "Member"
                  }
                ]
              }
            ]
          },
          "BodyMotion": {
            "Type": "Seek",
            "SlowDownDistance": 7,
            "StopDistance": 4
          }
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "BodyMotion": {
            "Type": "Nothing"
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Self",
            "Filters": [
              {
                "Type": "Flock",
                "FlockPlayerStatus": "NotMember"
              }
            ]
          },
          "Tag": "Not in flock",
          "Instructions": [
            {
              "Sensor": {
                "Type": "Player",
                "Range": 3,
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "NotMember"
                  },
                  {
                    "Type": "ViewSector",
                    "ViewSector": 30
                  }
                ]
              },
              "Tag": "Joining player",
              "Actions": [
                {
                  "Type": "JoinFlock",
                  "ForceJoin": true
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "InflictedDamage",
            "Target": "FlockLeader"
          },
          "Tag": "Setting flock target",
          "Actions": [
            {
              "Type": "FlockTarget"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Mob",
            "Range": 2,
            "OnlyLockedTarget": true
          },
          "Tag": "Attacking",
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Root_NPC_Attack_Melee"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Wolf_Pack.name"
}