Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1.1 / NPC / Roles / _Core / Tests / Test_Dog_Tame.json

Test_Dog_Tame

Server/NPC/Roles/_Core/Tests/Test_Dog_Tame.json, 2.4 KB

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "Wolf_Black",
  "FlockAllowedNPC": [ "Test_Dog_Tame" ],
  "FlockCanLead": true,
  "FlockInfluenceRange": 4,
  "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": "And",
            "Sensors": [
              {
                "Type": "FlockLeader"
              },
              {
                "Type": "Self",
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "Member"
                  }
                ]
              }
            ]
          },
          "BodyMotion": {
            "Type": "Seek",
            "SlowDownDistance": 7,
            "StopDistance": 3
          }
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "BodyMotion": {
            "Type": "Nothing"
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "And",
            "Sensors": [
              {
                "Type": "FlockLeader"
              },
              {
                "Type": "Self",
                "Filters": [
                  {
                    "Type": "Flock",
                    "FlockStatus": "Member"
                  }
                ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "Appearance",
              "Appearance": "Dog"
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Player",
            "Range": 3,
            "Filters": [
              {
                "Type": "Flock",
                "FlockStatus": "NotMember"
              },
              {
                "Type": "ViewSector",
                "ViewSector": 30
              }
            ]
          },
          "Actions": [
            {
              "Type": "JoinFlock",
              "ForceJoin": true
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Dog_Tame.name"
}