Good day.
How to write a script that when the focus teammates, proved Panel, and click on panel permit Inspect Player?
Or, how to write a script that when I click on the panel to act as a drop-down menu when focus teammate?
thank you
__________________
I do not speak much English, but I try
I am not 100% sure this will do it but something like:
Code:
OnLoad:
selfRegisterEvent("PLAYER_FOCUS_CHANGED")
OnEvent:
if UnitPlayerControlled("focus") and UnitIsFriend("focus")then
self:Show()
else
self:Hide()
end
OnClick:
if (UnitPlayerControlled("focus") and CheckInteractDistance("focus", 1) and not UnitIsUnit("player", "focus")) then
InspectUnit("focus")
end