Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.8 / EncounterManager / Example_Encounter.json

Example_Encounter

Server/EncounterManager/Example_Encounter.json, 1.5 KB

Fields

FieldType
Classstring
Typestring
Instructionsarray[1]

Source

{
  "Class": "EncounterManager",
  "Type": "Generic",
  "Instructions": [
    {
      "Instructions": [
        {
          "Sensor": {
            "Type": "Player",
            "Range": 8
          },
          "Instructions": [
            {
              "Sensor": {
                "Type": "Any",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "TriggerSpawners",
                  "Range": 40,
                  "Count": 2
                },
                {
                  "Type": "TimerStart",
                  "Name": "SecondRound",
                  "StartValueRange": [ 5, 5 ],
                  "RestartValueRange": [ 5, 5 ]
                },
                {
                  "Type": "Log",
                  "Message": "Encounter Manager Example: Spawned first round!"
                }
              ]
            },
            {
              "Sensor": {
                "Type": "Timer",
                "Name": "SecondRound",
                "State": "Stopped",
                "Once": true
              },
              "Actions": [
                {
                  "Type": "TriggerSpawners",
                  "Range": 40,
                  "Count": 2
                },
                {
                  "Type": "Log",
                  "Message": "Encounter Manager Example: Spawned second round!"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}