Posts: 1,228
Threads: 133
Joined: Oct 2009
Reputation:
0
So basically i don't want more than 1 person to enter a zone. How can i calculate the amount of players enter a zone, and if there are more than 1 then just not let them take over zone ?
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
Do a for loop through the players and check each one if they are in the zone. Each time a player is found in the zone, add to a variable. Then, check if that variable is greater than one.
Posts: 187
Threads: 37
Joined: Sep 2010
Reputation:
0
Try using IsPlayerInRangeOfPoint in a loop with all players and such... That's what I'd do at least.