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 Range Of Unit

From SC2Mapster Wiki
Jump to: navigation, search


Unit Enters/Leaves Range Of Unit


Unit - u state|Enters/Leaves a distance of range from fromUnit|Unit

Galaxy Code

void TriggerAddEventUnitRange (trigger t,unitref u,unit fromUnit,fixed range,bool state)


This event fires when a unit enters or leaves a distance around another unit. Use "Triggering Player" to get the player that was controlling the unit. Use "Triggering Unit" to get the unit.