More efficient way?
#7

Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
There is only one timer, I guess it's efficient. The code just looks messy :P
So you say you use a timer to check if the players have entered a checkpoint?
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.
Reply


Messages In This Thread
More efficient way? - by ScottCFR - 11.05.2011, 22:33
Respuesta: More efficient way? - by admantis - 11.05.2011, 23:21
Re: More efficient way? - by ScottCFR - 11.05.2011, 23:41
Re: More efficient way? - by Steven82 - 11.05.2011, 23:58
Re: More efficient way? - by ScottCFR - 12.05.2011, 00:59
Re: More efficient way? - by (SF)Noobanatior - 12.05.2011, 05:12
Re: More efficient way? - by leong124 - 12.05.2011, 05:59
Re: More efficient way? - by Cameltoe - 12.05.2011, 07:28

Forum Jump:


Users browsing this thread: 1 Guest(s)