WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Targetting by clicking on frame (https://www.wowinterface.com/forums/showthread.php?t=16506)

Sciaracastro 05-30-08 08:28 PM

Targetting by clicking on frame
 
I have this frame that inherits SecureUnitButtonTemplate (it inherits a template that inherits SecureUnitButtonTemplate actually, but i guess it's the same) and i want it to target a certain unit.

When this frame loads it does:
Code:

this:SetAttribute("type1", "macro")
this:SetAttribute("macrotext", "/targetexact nil")

When clicking on it, it does: (i previously saved the target name in targ)
Code:

this:SetAttribute("macrotext", "/targetexact "..targ)
it doesnt work at all.

how to fix it?


All times are GMT -6. The time now is 11:12 PM.

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