Posts: 185
Threads: 13
Joined: Jan 2008
Reputation:
0
I need help i dunno how to make the Playerposition in Race.. i know calculationg it but not how..
Pls help
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
- You need a variabele for the checkpoints to begin with (new PlayerRCP[MAX_PLAYERS]),
- and a variabele to check if the player is in the race (new InRace[MAX_PLAYERS])
- With each checkpoint the player reaches, increment the PlayerRCP with 1.
- Set up a looping timer on race start to a function called (for example) UpdateRacePos().
- Create your new public.
- Make it loop trough all players in the race.
- Sort out the positions by PlayerRCP.
- If two or more players are at the same CP, check who is closest to the next CP (PlayerToPoint)
Something like that. Not simple though ...
Posts: 185
Threads: 13
Joined: Jan 2008
Reputation:
0
i know this but explain a bit more i dunno what i should do correctly