# Unit Acquires Powerup
Grammar — unit acquires powerup
Flags —Native
|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
- Triggering Powerup — EventUnitPowerupUnit
# Related
Category: Unit / Items
- Create Inventory Item —
void
— UnitInventoryCreate - Add Item To Inventory —
void
— UnitInventoryAdd - Last Created Inventory Item —
unit
— UnitInventoryLastCreated - Inventory Item Carried —
unit
— UnitInventoryItem - Inventory Item Carrier —
unit
— UnitInventoryUnit - Inventory Item Container —
int
— UnitInventoryContainer - Inventory Item Slot —
int
— UnitInventorySlot - Inventory Item Index —
int
— UnitInventoryIndex - Inventory Item Count —
int
— UnitInventoryCount - Inventory Items Carried —
unitgroup
— UnitInventoryGroup - Open Inventory Container —
void
— UnitInventoryContainerOpen - Move Inventory Item —
void
— UnitInventoryMove - Remove Inventory Item —
void
— UnitInventoryRemove - Unit Acquires Powerup —
void
— TriggerAddEventUnitPowerup - Triggering Powerup —
unit
— EventUnitPowerupUnit - Unit Manipulates Inventory —
void
— TriggerAddEventUnitInventoryChange - Triggering Inventory Manipulation —
int
<preset::InventoryManipulation> — EventUnitInventoryChange - Triggering Inventory Item —
unit
— EventUnitInventoryItem - Triggering Inventory Item Container —
int
— EventUnitInventoryItemContainer - Triggering Inventory Item Slot —
int
— EventUnitInventoryItemSlot - Triggering Inventory Item Target Point —
point
— EventUnitInventoryItemTargetPoint - Triggering Inventory Item Target Unit —
unit
— EventUnitInventoryItemTargetUnit
# Examples
mods/warcoop/warclassic.sc2mod — base.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);
}