- Joined
- Feb 19, 2007
- Messages
- 107
I have a spell which targets an item (based on finger of death, but with 0 damage) and I need to set an item variable (i) to this target but i can't find the right native to do this.
Here is a simplified version of my code:
Thanks in advance for any help.
Here is a simplified version of my code:
JASS:
local item i = GetSpellTargetItem() //Wrong native 0.o
local string iName = GetItemName(i)
call BJDebugMsg(iName)
set iName = null
set i = null