Triggers/Events/Unit Takes Damage

From SC2Mapster Wiki
Jump to: navigation, search

Unit-Combat[edit | edit source]

Unit Takes Damage[edit | edit source]

GUI[edit | edit source]

Unit - u takes damageFatalOption damageType damage (from damageEffect effects)

Galaxy Code[edit | edit source]

void TriggerAddEventUnitDamaged (trigger inTrigger,unitref inUnit,int inDamageType,int inDamageFatal,string inEffect)

Description[edit | edit source]

This event fires when a unit takes damage. Use "Damage Source Position" to get the position of the damage source. Use "Damaging Player" to get the owner of the unit that is dealing damage. Use "Damaging Unit" to get the unit that is dealing damage. Use "Triggering Damage Amount" to get the amount of damage being dealt. Use "Triggering Player" to get the owner of the unit that is taking damage. Use "Triggering Unit" to get the unit that is taking damage.

Parameters[edit | edit source]