Hi, I've searched the wowwiki and even screwed around but I can't seem to find the right variable. Here is some example code of what I'm trying to do:
Code:
if ("target" ==nil) then
WhatsTargetted = "Nothing";
elseif ("target" ~=nil) then
WhatsTargetted = "target"; -- This is what is always run, obviously
end;
if (WhatsTargetted ~="Nothing") then
SendChatMessage("I have you targetted", "WHISPER", this.language, WhatsTargetted);
else
DEFAULT_CHAT_FRAME:AddMessage("Nothing is targetted");
end;
I'm having trouble finding the variable that stores what the player is currently targetting. That same variable should be nil or "" if there is nothing targetted, right?
"target" obviously doesn't seem to be it..
Thanks so much in advance!