Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.1.1 / NPC / Roles / _Core / Tests_Development / Test_ApplyForce.json

Test_ApplyForce

Server/NPC/Roles/_Core/Tests_Development/Test_ApplyForce.json, 1.2 KB

Fields

FieldType
Typestring
Appearancestring
HotbarItemsarray[0]
MotionControllerListarray[1]
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Pig_Wild",
  "HotbarItems": [ ],
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 3,
      "Gravity": 10,
      "MaxFallSpeed": 20,
      "Acceleration": 10
    }
  ],
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 5
          },
          "ActionsBlocking": true,
          "Actions": [
            {
              "Type": "Timeout",
              "Delay": [ 1, 1 ]
            },
            {
              "Type": "PlayAnimation",
              "Slot": "Status",
              "Animation": "Alerted"
            },
            {
              "Type": "Timeout",
              "Delay": [ 1, 1 ]
            },
            {
              "Type": "Attack",
              "Attack": "Test_ApplyForce"
            },
            {
              "Type": "PlayAnimation",
              "Slot": "Status"
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_ApplyForce.name"
}