Thread Tools Display Modes
Prev Previous Post   Next Post Next
09/27/17, 02:01 PM   #1
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 238
Is there a way to get the player's unitId?

Title says everything, I have searched the forum using the forum search function.

What do I need it for?

I track buffs using EVENT_EFFECT_CHANGED, which communicates the unitId in addition to the unitTag. I use this method to create the holding of active buffs data in the lua environment. Whenever a person uses /reloadui, that data is flushed. So I have to use GetUnitBuffInfo("player", ...) to regain the currently running buffs on the player, because EVENT_EFFECT_CHANGED does not fire the "buff gained" event for currently active buffs. problem is: GetUnitBuffInfo doesn't return unit ids. There would be an option to save the current holding of data to the svars, using timestamps to check if the buffs are still up after using reloadui or relogging, but.... idk, this method feels very abusive.

Does anybody have a clue?

Cheers

Last edited by Letho : 09/27/17 at 02:03 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Is there a way to get the player's unitId?

Thread Tools
Display Modes

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