SC2Mapster Wiki
Advertisement

Unit-Combat[ | ]

Unit Takes Damage[ | ]

GUI[ | ]

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

Galaxy Code[ | ]

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

Description[ | ]

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[ | ]

  • trigger t
  • unit u
    • Name: Unit
  • preset damageType
    • Preset: Damage Type
    • Name: Damage Type
  • preset damageFatalOption
    • Preset: Damage Fatal Option
    • Name: Damage Fatal Option
  • gamelink damageEffect
    • Name: Damage Effect
    • GameType: Effect
Advertisement