WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Stuf Unit Frames - Display Res Status (https://www.wowinterface.com/forums/showthread.php?t=56442)

Heather00724 07-25-18 09:10 PM

Stuf Unit Frames - Display Res Status
 
I'm switching over to Stuf Unit frames and am trying to make it show if the party member has a rez pending.

I'd like it to show the resurrecting Icon from default Blizzard Raid Frames. I started with trying to just make it say Pending or Not Pending.

So far I've managed this, and it doesn't work.

Quote:

function(unit)
if UnitExists(unit) and UnitHasIncomingResurrection then return "Pending" else return "not pending"
end
end
Any help would be appreciated.

Seerah 07-26-18 01:39 PM

You're not actually calling the resurrection query function, you're just checking to see if the function exists. Add () after it.

http://lua-users.org/wiki/FunctionsTutorial

Heather00724 07-27-18 06:48 PM

I guess I dont really understand what that means, I read the article but I dont know how to apply it to what I'm trying to accomplish.

Seerah 07-27-18 07:49 PM

Lua Code:
  1. function(unit)
  2.      if UnitExists(unit) and UnitHasIncomingResurrection(unit) then
  3.           return "Pending"
  4.      else
  5.           return "not pending"
  6.      end
  7. end


All times are GMT -6. The time now is 02:57 PM.

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