WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Target's target name on initial target frame. (https://www.wowinterface.com/forums/showthread.php?t=55412)

Iroquois 05-23-17 12:09 PM

Target's target name on initial target frame.
 
So I am attempting to recreate Delsim's UI to the best that memory serves, bar a few things here or there that I've changed to my liking. One thing that I recall was that, on the target frame, there was text that named the target's target.

I've been attempting to find the answer without directly asking, and all I could scrounge up was:
Outline()
UnitName("targettarget")

This produces nothing. Not even an error, just simply nothing. To better illustrate what's happening and what I wish to do, I've provided screenshots.

When I place pitbull into config mode, it shows where I've placed the LUA on my target frame to show the target's target:


With config mode disabled, and myself targeted, the target's target text doesn't appear, at all:


What am I missing to make this work?

Edit: Huh, seems I can't link images for some reason. I'm new to these forums, apologies.

Fizzlemizz 05-23-17 02:54 PM

Just doing UnitName("targettarget") doesn't assign the name returned by the function too anything.

Try:

Code:

return UnitName("targettarget")
Edit: It looks like you can also just:
Code:

return Name("targettarget")

Iroquois 05-23-17 03:32 PM

It works! Thanks!


All times are GMT -6. The time now is 04:49 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI