Posts: 371
Threads: 104
Joined: May 2009
Reputation:
0
could someone plz tell me how to set a check point so it can only be seen from a sertain distains plz
Posts: 900
Threads: 21
Joined: Jan 2007
Reputation:
0
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.
Posts: 371
Threads: 104
Joined: May 2009
Reputation:
0
could u write it up for me coz im a bit new to this
and DJ i mean on the radar
Posts: 899
Threads: 54
Joined: May 2009
Reputation:
0
Uh, why not download a checkpoint streamer?
Posts: 371
Threads: 104
Joined: May 2009
Reputation:
0
well could someone put a link to the YCP check point coz the link is broken