Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.2 / NPC / Roles / _Core / Tests / Flocking / Test_Flock_Damage.json

Test_Flock_Damage

Server/NPC/Roles/_Core/Tests/Flocking/Test_Flock_Damage.json, 1.5 KB

Fields

FieldType
Debugstring
Typestring
Appearancestring
StartStatestring
FlockSpawnTypesarray[1]
FlockAllowedNPCarray[1]
BreathesInWaterboolean
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Debug": "DisplayState, DisplayFlock",
  "Type": "Generic",
  "Appearance": "Sheep",
  "StartState": "Idle",
  "FlockSpawnTypes": [ "Test_Flock_Damage" ],
  "FlockAllowedNPC": [ "Test_Flock_Damage" ],
  "BreathesInWater": true,
  "MotionControllerList": [
    {
      "Type": "Dive",
      "MaxSwimSpeed": 10,
      "Acceleration": 10,
      "MaxDiveSpeed": 8,
      "SwimDepth": 0.6,
      "SinkRatio": 0.5,
      "MinDiveDepth": 0,
      "MaxDiveDepth": 100,
      "MinDepthAboveGround": 1,
      "MinDepthBelowSurface": 1,
      "Gravity": 10,
      "MaxRotationSpeed": 360,
      "MaxSwimTurnAngle": 180
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "State",
            "State": "Idle"
          },
          "Instructions": [
            {
              "Sensor": {
                "Type": "FlockCombatDamage",
                "LeaderOnly": false
              },
              "Actions": [
                {
                  "Type": "State",
                  "State": "Damage"
                }
              ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "State",
            "State": "Damage"
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Flock_Damage.name"
}