Thread Tools Display Modes
09/29/15, 05:20 PM   #1
Olivierko
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 8
EVENT_COMBAT_EVENT -> unitId

Hello,

I'm trying to figure out whether or not the two following return values actually has any functional value or not:
- integer sourceUnitId
- integer targetUnitId

At the event of a killing blow for example both of these parameters are populated but I can't seem to understand where/how I could use them.

I was hoping I could resolve a UnitTag of some sort in order to use other functions which provide additonal character information such as alliance, class etc.

I've tried using these values in following functions without any success:
- GetUnitName
- GetUnitClass
- GetUnitAlliance

Apparently unitId and unitTag are two different things.

Any help would be much appriciated.
  Reply With Quote
09/30/15, 02:42 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
The unitID is indeed not the same as the unitTag. It is a unique number that is supplied to allow us to differentiate between npc enemies with the same name. You can read the full explanation for it in this thread.
  Reply With Quote
09/30/15, 03:43 AM   #3
Olivierko
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 8
Originally Posted by sirinsidiator View Post
The unitID is indeed not the same as the unitTag. It is a unique number that is supplied to allow us to differentiate between npc enemies with the same name. You can read the full explanation for it in this thread.
Thanks for bringing that to my attention, that was a very informative thread.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » EVENT_COMBAT_EVENT -> unitId


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