check points
#2

First of all, you will need a timer that runs all the time, aproximatly once a second. (You could use OnPlayerUpdate, but it would take too much resources and cause lag).
In that timer, you'll have to check every player's position, and using IsPlayerInRangeOfPoint, see if they are close enough to the checkpoint. In case they are, show it. In case they aren't, hide it.
Since getting a player's position and compareing it against a distance can be very resource intensive, you could use some other checks first. For example, if it's inside an interior, you could check if they are inside the correct interior before checking the position. That way, you would improve performance even more.
Reply


Messages In This Thread
check points - by sggassasin - 06.12.2009, 04:23
Re: check points - by Zamaroht - 06.12.2009, 04:54
Re: check points - by DJDhan - 06.12.2009, 04:59
Re: check points - by sggassasin - 06.12.2009, 05:01
Re: check points - by Abernethy - 06.12.2009, 05:02
Re: check points - by sggassasin - 06.12.2009, 06:00

Forum Jump:


Users browsing this thread: 1 Guest(s)