Thread Tools Display Modes
Today, 11:54 AM   #1
Anthonysc
AddOn Author - Click to view addons
Join Date: Jan 2022
Posts: 13
[open] Return UnitId from EVENT_RETICLE_TARGET_CHANGED

Currently most events such as EVENT_EFFECT_CHANGED and EVENT_COMBAT_EVENT use the unitId to identify where various effects are originating, however when you're actually standing there looking at a specific unit, there is no way to determine which UnitId you're actually interacting with. This leads to addon devs needing to implement a number of super hacky and not particularly performant workarounds (lookup tables) to synthesize information between the events and the player's target. (We have to do this in Fancy Action Bar+ to determine who the heck you still have your debuffs on when you try to update the timers based on your targets, it's.... gross).

I think adding the UnitId as a return from EVENT_RETICLE_TARGET_CHANGED, which doesn't currently have any returns (at least not in the documentation), would be an amazing way to allow us to get this information which there currently isn't an easy way to get, without us needing to resort to these awful workarounds.

Alternatively (or additionally), a simple API function like GetUnitNameHighlightedByReticle() but for UnitId would be a welcome addition.

This would also address the scenario described in: https://www.esoui.com/forums/showthread.php?t=11031

Last edited by Anthonysc : Today at 12:44 PM.
  Reply With Quote
Today, 01:33 PM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,593
Keep in mind that precise ways to get information about damage sources were intentionally removed by ZOS in the past, over privacy concerns by players, as well as some addons going above and beyond to track things in combat that gave players an unfair advantage in pvp.
  Reply With Quote

ESOUI » Developer Discussions » Wish List » [open] Return UnitId from EVENT_RETICLE_TARGET_CHANGED


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