# Last Created Inventory Item

Grammar — Last created inventory item
FlagsNative | Function

Returns the last item created via the “Create Inventory Item” action. This function ignores items created by other triggers.

Returns — unit

native unit UnitInventoryLastCreated();

Category: Unit / Items

# Examples

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L472
UnitInventoryLastCreated()