12.05.2011, 05:59
Quote:
There is only one timer, I guess it's efficient. The code just looks messy :P
|
Why don't use callback(OnPlayerEnterCheckpoint)?
It's more efficient then using a timer, because it is only called when a player enters a checkpoint.
If you use a timer, it will still run the code even if the player haven't entered any checkpoints.
Using switch would be more efficient, but only when you check the value of the same thing for more than or equal to 3 times.