Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9.1 / NPC / Roles / _Core / Tests / Test_Drop_Item.json

Test_Drop_Item

Server/NPC/Roles/_Core/Tests/Test_Drop_Item.json, 980 B

Fields

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

Source

{
  "Type": "Generic",
  "Appearance": "Sheep",
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "RunThreshold": 0.7,
      "RunThresholdRange": 0.1,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Any"
          },
          "Actions": [
            {
              "Type": "DropItem",
              "DropList": "Drop_Sheep",
              "Delay": [ 1, 1 ],
              "ThrowSpeed": 9.5,
              "Distance": [ 1, 1 ],
              "DropSector": [ -180, 180 ],
              "PitchHigh": false
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Drop_Item.name"
}