Skip to content

TriggerRegionEvent

Sends an event to the mode’s copy on another level.

It reaches OnRegionEvent there at its next tick. "all" means every level, this one too.

TriggerRegionEvent(region, name [, data])
Parameter Type
region string a level of this server, or "all"
name string the event’s name
data string what to send with it (JsonEncode makes a string of a table) (optional)

boolean - false for a level this server does not run

TriggerRegionEvent("all", "siege", GetRegion())

OnRegionEvent · GetRegions · the Regions group of the index