Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.8 / NPC / Roles / _Core / Tests / TriggerVolumes / Test_Trigger_Volume.json

Test_Trigger_Volume

Server/NPC/Roles/_Core/Tests/TriggerVolumes/Test_Trigger_Volume.json, 1.1 KB

Fields

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

Source

{
  "DefaultSubState": "Start",
  "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": "Player",
            "Range": 10
          },
          "ActionsBlocking": true,
          "Actions": [
            {
              "Type": "SignalTaggedVolumes",
              "MatchTag": "test_trigger",
              "Radius": 20,
              "MaxTargets": 0,
              "SignalKey": "ping",
              "PositionSource": "Self"
            },
            {
              "Type": "Timeout",
              "Delay": [ 3, 3 ]
            }
          ]
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Trigger_Volume.name"
}