Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.8.1 / EncounterManager / Example_Portal_Drain.json

Example_Portal_Drain

Server/EncounterManager/Example_Portal_Drain.json, 634 B

Fields

FieldType
Classstring
Typestring
Instructionsarray[1]

Source

{
  "Class": "EncounterManager",
  "Type": "Generic",
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 16
          },
          "ActionsBlocking": true,
          "Actions": [
            {
              "Type": "Timeout",
              "Delay": [ 5, 5 ]
            },
            {
              "Type": "AdjustPortalTimer",
              "Seconds": -30
            },
            {
              "Type": "Log",
              "Message": "[PortalDrain] Player in range: -30s to portal timer"
            }
          ]
        }
      ]
    }
  ]
}