View Single Post
09/08/18, 08:56 AM   #8
Drummerx04
AddOn Author - Click to view addons
Join Date: Sep 2017
Posts: 54
Originally Posted by Scootworks View Post
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).
Any event that involves your character will populate the source/target names and Ids. However the events that fire that do not involve you (which is actually most of them in any public setting) will have a lot of the data stripped out and this is intentionally done by ZOS.

Your final statement in your OP suggested that you wanted to get the display name from the Ids, but if your actual "wish" is to get the displayname instead of character name based on user settings from COMBAT_EVENTS involving you, then that's different.

Your best bet now is to build a table of unitId -> displaynames via COMBAT_EFFECT_CHANGED, or use whatever event triggers when you target someone to build a list of characternames -> displaynames.