Quote:
Originally Posted by [MWR]Blood
Make a variable for entered checkpoints, and when a player enters a checkpoint, increase the variable by one.
Then, you can check if the variable's count is equal to the total race checkpoints and if it is, obviously that means the player has entered the last checkpoint.
To check the positions, make another variable and when a player finishes, increase it by one.
|
This might also work,in fact I am sure it works(good point Mr. Blood),and I don't want to mess up with your point of view(as you have more REP than me lol :P),but there are 2 different race checkpoints type,the one with arrows(the arrow shows where the next checkpoint is[points to the next location]),and the finish race checkpoint wich is just like a normal checkpoint,but a bit different(and it doesn't have an arrow anymore[obviusly,if it's called finish checkpoint]).So when the player enters the finish race checkpoint,then he should get the player ID and destroy the checkpoint(so the other players won't enter it anymore).Now,I am not saying that it's more efficient,but isn't that easier then messing up with variables?Anyway as you mentioned in your post(that the variable clearly says if he entered or no last checkpoint,and it's obvius),I think both ways are obvius.As he asked such a question,he might be a newbie,so he might not clearly understand how to initialize variable,and compare it every time for every player that netered a checkpoint,etc.