Hytale Asset ReferenceUnofficial
Versions / 0.4.0 / NPC / Roles / _Core / Tests / Flocking / Test_Sheep_Flock2.json

Test_Sheep_Flock2

Server/NPC/Roles/_Core/Tests/Flocking/Test_Sheep_Flock2.json, 1.9 KB

Fields

FieldType
Typestring
Appearancestring
FlockAllowedNPCarray[1]
FlockCanLeadboolean
FlockInfluenceRangenumber
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[2]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Sheep",
  "FlockAllowedNPC": [ "Test_Sheep_Flock2" ],
  "FlockCanLead": true,
  "FlockInfluenceRange": 4,
  "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": "And",
            "Sensors": [
              {
                "Type": "FlockLeader"
              },
              {
                "Type": "Self",
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "Member"
                  }
                ]
              }
            ]
          },
          "BodyMotion": {
            "Type": "Flock"
          }
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Tag": "idle",
          "BodyMotion": {
            "Reference": "Wander_Simple",
            "Modify": { }
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "And",
            "Sensors": [
              {
                "Type": "FlockLeader"
              },
              {
                "Type": "Self",
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "Leader"
                  }
                ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "Appearance",
              "Appearance": "Cat"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Sheep_Flock2.name"
}