Difference between revisions of "GetSecondsPassed"
revert. this example is absolutely correct. timer is meant to count backwards! you have to set timer to the desired amount of seconds
imported>Slserpent |
imported>JustTim (revert. this example is absolutely correct. timer is meant to count backwards! you have to set timer to the desired amount of seconds) |
||
Line 10: | Line 10: | ||
begin gamemode | begin gamemode | ||
if timer > | if timer > 0 | ||
set timer to timer | set timer to timer - GetSecondsPassed | ||
else | else | ||
; time's up! Do something. | ; time's up! Do something. |