Script:setcontrolledzone: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
|parameters= | |parameters= | ||
zone string Name of the zone to take control of | zone string Name of the zone to take control of | ||
|intro=The entity executing this command will receive {{Event|controlledzone_enter}} and {{Event|controlledzone_leave}} events when any | |intro=The entity executing this command will receive {{Event|controlledzone_enter}} and {{Event|controlledzone_leave}} events when any entities enter or leave that zone. Control of a zone can be relinquished using the {{Command|unsetcontrolledzone}} command. | ||
}} | }} |
Revision as of 01:44, 17 April 2020
The setcontrolledzone
script command is used to set the controlling entity of a zone for an entity. The entity executing this command will receive controlledzone_enter
and controlledzone_leave
events when any entities enter or leave that zone. Control of a zone can be relinquished using the unsetcontrolledzone
command.
Usage
setcontrolledzone <zone>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
zone |
string |
Name of the zone to take control of |