# 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.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:632

    libGAw3_gt_EVENT_PLAYER_UNIT_USE_ITEMPower_UpNeedsImprove = TriggerCreate("libGAw3_gt_EVENT_PLAYER_UNIT_USE_ITEMPower_UpNeedsImprove_Func");
    TriggerEnable(libGAw3_gt_EVENT_PLAYER_UNIT_USE_ITEMPower_UpNeedsImprove, false);
    TriggerAddEventUnitPowerup(libGAw3_gt_EVENT_PLAYER_UNIT_USE_ITEMPower_UpNeedsImprove, null);
}