Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.10 / NPC / Roles / _Core / Tests / Combat / Test_Guided_Bow.json

Test_Guided_Bow

Server/NPC/Roles/_Core/Tests/Combat/Test_Guided_Bow.json, 3.0 KB

Fields

FieldType
Typestring
Appearancestring
HotbarItemsarray[1]
DisableDamageGroupsarray[1]
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[2]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Trork_Hunter",
  "HotbarItems": [ "Weapon_Shortbow_Crude" ],
  "DisableDamageGroups": [ "Self" ],
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Continue": true,
      "Instructions": [
        {
          "Sensor": {
            "Type": "Mob",
            "GetNPCs": true,
            "GetPlayers": false,
            "Range": 40,
            "Filters": [
              {
                "Type": "LineOfSight"
              },
              {
                "Type": "NPCGroup",
                "ExcludeGroups": [ "Self", "Player" ]
              }
            ]
          },
          "HeadMotion": {
            "Type": "Aim",
            "Spread": 0,
            "HitProbability": 1,
            "Deflection": true
          }
        }
      ]
    },
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 4,
            "Filters": [
              {
                "Type": "ItemInHand",
                "Items": [ "Weapon_Shortbow_Crude" ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Skeleton_Archer_Bow_Shoot",
              "BallisticMode": "Long",
              "AimingTimeRange": [ 3, 3 ],
              "LineOfSight": false,
              "AvoidFriendlyFire": false,
              "AttackPauseRange": [ 1, 1 ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Player",
            "Range": 4,
            "Filters": [
              {
                "Type": "ItemInHand",
                "Items": [ "Weapon_Sword_Iron" ]
              }
            ]
          },
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Skeleton_Archer_Bow_Shoot",
              "BallisticMode": "Short",
              "AimingTimeRange": [ 3, 3 ],
              "LineOfSight": false,
              "AvoidFriendlyFire": false,
              "AttackPauseRange": [ 1, 1 ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Skeleton_Archer_Bow_Shoot",
              "BallisticMode": "Short",
              "AimingTimeRange": [ 3, 3 ],
              "LineOfSight": true,
              "AttackPauseRange": [ 1, 1 ]
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "Nothing"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Guided_Bow.name"
}