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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean - false for a level this server does not run
Example
Section titled “Example”TriggerRegionEvent("all", "siege", GetRegion())See also
Section titled “See also”OnRegionEvent · GetRegions · the Regions group of the index
