View Single Post
01-10-21, 04:24 PM   #1
Shabblahabbla
A Murloc Raider
Join Date: Jan 2021
Posts: 5
Creating a script that hide other addon frames

Code:
if memberExists = GetPartyMember(3) then
  	eBar_bar_4:SetAlpha(0)
  	eBar_bar_5:SetAlpha(0)
  	eBar_bar_6:SetAlpha(0)
  	eBar_bar_7:SetAlpha(0)
  	LoseControlparty1:SetAlpha(0)
  	LoseControlparty2:SetAlpha(0)
else
  	eBar_bar_4:SetAlpha(1)
  	eBar_bar_5:SetAlpha(1)
  	eBar_bar_6:SetAlpha(1)
  	eBar_bar_7:SetAlpha(1)
  	LoseControlparty1:SetAlpha(1)
  	LoseControlparty2:SetAlpha(1)
end
This doesnt work. I do not know much about lua.
Help me please make it work.

When Im in a party or raid with party3 exists I want to hide some frames.

I used to have macros for /run eBar_bar_4:SetAlpha(0) and /run eBar_bar_4:SetAlpha(1) for all bars. I just want it to work without macros as long as Im in the game.

Thank you for reading!