Log in

View Full Version : if is targeting



447557
09-27-2016, 07:47 AM
I tried to do a "if player:isTargeting" type of check, but I failed...
Is it possible to?

If it is, could you tell me how to?

Also, where can I check every functions of the libraries? Because the wiki is weird and seems outdated...

447557
09-28-2016, 08:12 AM
I found this function online, can someone tell me if it works?



local c = Creature.GetByID(Self.TargetID())
if c:isValid() and c:isAlive() and c:isTarget() and c:DistanceFromSelf() == 1 then