# Last Created Loot Units
Grammar — Last created loot units
Flags —Native
|Function
Returns the last group of units/items created via the “Drop Loot At Unit” or “Drop Loot At Point” actions. This function ignores units created by other triggers.
Returns — unitgroup
native unitgroup UnitLootLastCreatedGroup();
# Related
Category: Loot / Basic
- [F] —
void
— Create Loot At Unit — ( UnitLootDropUnit ) - [F] —
void
— Create Loot At Point — ( UnitLootDropPoint ) - [F] —
unit
— Last Created Loot Unit — ( UnitLootLastCreated ) - [F] —
unitgroup
— Last Created Loot Units — ( UnitLootLastCreatedGroup )
# Examples
# mods/warcoop/warcoopdata.sc2mod
// L3809
UnitLootLastCreatedGroup()