31.01.2012, 13:47
The double pipes mean OR, not AND. In your case you need AND (&&). I read code in my mind like this:
if not IsPlayerInRangeOfPoint OR not IsPlayerInRangeOfPoint OR not IsPlayerInRangeofPoint then do : ...
As you can see, it doesn't make sense. This however, makes a lot more sense:
if not IsPlayerInRangeOfPoint AND not IsPlayerInRangeOfPoint AND not IsPlayerInRangeOfPoint then do : ...
if not IsPlayerInRangeOfPoint OR not IsPlayerInRangeOfPoint OR not IsPlayerInRangeofPoint then do : ...
As you can see, it doesn't make sense. This however, makes a lot more sense:
if not IsPlayerInRangeOfPoint AND not IsPlayerInRangeOfPoint AND not IsPlayerInRangeOfPoint then do : ...