Triggers/Events/Unit Is Attacked

From SC2Mapster Wiki
Jump to: navigation, search

Unit-Combat

Unit Is Attacked

GUI

Unit - u is attacked

Galaxy Code

void TriggerAddEventUnitAttacked (trigger t,unitref u)

Description

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.

Parameters