How to Get Itemtype of item in slot

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
460
I'm trying to draw an itemtype of an item in slot X. This is how much of the code i have, but i cant find the native to get the slot
JASS:
local itemtype i1 = GetItemType(???)

EDIT: Found it, It was
JASS:
local itemtype i1 = GetItemType(UnitItemInSlot(GetTriggerUnit(), 0))
 
Status
Not open for further replies.
Top