Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/17/14, 05:03 AM   #1
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 692
Is Npc Dead

How do I figure out if the NPC I am looting is dead or not. I found UNIT_REACTION_DEAD on the globals page but no idea how to access it. I also found IsUnitDead(string unitTag) Returns: bool isDead. However, it's that darn ' unitTag ' and I have no idea what to put. I found 19 posts with the words UntiTag, and they mention things like "player", "reticleover", "interact", and so on. I tried "playertarget" and "target" but I can't get IsUnitDead() to return true when I'm looting an Npc.

Esohead uses the level of the NPC when it's living and you mouse over the Npc, to determine that it's an Npc. What I am trying to do is determine whether or not I am looting an Npc. The Npc level is 0 when they are dead. I can get the Npc level to display when they are alive, but I want to loot the Npc and not have it's contents record in HarvestMap.

Last edited by Sharlikran : 04/17/14 at 08:35 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Is Npc Dead


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off