Quantcast
Target's target name on initial target frame. - WoWInterface
Thread Tools Display Modes
05-23-17, 12:09 PM   #1
Iroquois
A Defias Bandit
Join Date: May 2017
Posts: 2
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.

Last edited by Iroquois : 05-23-17 at 05:26 PM.
  Reply With Quote
05-23-17, 02:54 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,348
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")
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 05-23-17 at 03:05 PM.
  Reply With Quote
05-23-17, 03:32 PM   #3
Iroquois
A Defias Bandit
Join Date: May 2017
Posts: 2
It works! Thanks!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Target's target name on initial target frame.

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