• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

[JASS] Native for target item?

Status
Not open for further replies.
Level 5
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:
JASS:
local item i = GetSpellTargetItem() //Wrong native 0.o
local string iName = GetItemName(i)
call BJDebugMsg(iName)
set iName = null
set i = null
Thanks in advance for any help.
 
Status
Not open for further replies.
Top