# Unit Acquires Powerup

Grammarunit acquires powerup
FlagsNative | Event

This event fires when a unit acquires a powerup. Use “Triggering Powerup” to get the powerup.

# Arguments

  • unitref [ unit ] — Unit

Returns — void

native void TriggerAddEventUnitPowerup(
	trigger t,
	unitref u,
);

# Event parameters

Category: Unit / Items

# Examples

# mods/warcoop/warclassic.sc2mod

WarClassic.galaxy

// L632
TriggerAddEventUnitPowerup(libGAw3_gt_EVENT_PLAYER_UNIT_USE_ITEMPower_UpNeedsImprove, null)