• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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