View Single Post
09/07/18, 07:02 AM   #7
Scootworks
 
Scootworks's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2014
Posts: 312
Originally Posted by Drummerx04 View Post
Okay, so there's a pretty long history of changes to the COMBAT_EVENT, but it can be summarized as follows.

COMBAT_EVENT triggers for pretty much everything in the immediate area (out to around 50-60m in game). Once upon a time, Source and Target names along with every other field were always populated. This leads to a LOT of information being leaked more or less unintentionally (see original Miat's addon capabilities of detecting nearby players in stealth ).

ZOS removed a bunch of this data from the combat events to combat this leakage, so there is intentionally no direct API call to go from a unitId to a character/player name and there never will be.
i don't get it and i don't see your problem. EVENT_COMBAT_EVENT does give you: sourceUnitId, targetUnitId, sourceName, targetName too. the problem is, sourceUnitId and targetUnitId is not used and totally useless in my opinion. the reason why i want account name (displayName) in this case is: i want the correct names when you kill someone, depending on ZO_ShouldPreferUserId() (ingame options menu).