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 Is Attacked

From SC2Mapster Wiki
Jump to: navigation, search


Unit Is Attacked


Unit - u is attacked

Galaxy Code

void TriggerAddEventUnitAttacked (trigger t,unitref u)


This event fires when a unit is attacked. Use "Attacking Unit" to refer to the unit performing the attack. Use "Triggering Unit" to refer to the unit being attacked. Use "Triggering Player" to get the owner of the unit being attacked.