Triggers/Events/Unit Enters-Leaves Region

From SC2Mapster Wiki
Jump to: navigation, search

Unit-Basic

Unit Enters/Leaves Region

GUI

Unit - u state|Enters/Leaves r

Galaxy Code

void TriggerAddEventUnitRegion (trigger t,unitref u,region r,bool state)

Description

This event fires when a unit enters or leaves a region. Use "Triggering Player" to get the player that was controlling the unit. Use "Triggering Region" to get the region that the unit either entered or left. Use "Triggering Unit" to get the unit.

Parameters