Thread: Range check
View Single Post
04-29-18, 03:07 AM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
Range check

Hello guys, can you help me please?

Im trying to make the range check for party1target, but it should parent to party1 frame.

How it works for me:

If player are too far away from party1 then party1 alpha is 0.6
If the target of party1 not too far away, then alpha is set to 1.

But it should work, like so:

If party1target is in range but party1 not, then it should set the alpha to 0.6 to both frames...


My code at the bottom of lua file

Lua Code:
  1. self.Range = cfg.frames.range

Any way to modify it?


Have also attached a range lua file from oUF
  Reply With Quote