Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

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