GetSecondsPassed

Revision as of 17:18, 27 April 2006 by imported>Slserpent

Syntax:

GetSecondsPassed 

Returns the number of seconds passed since the last game frame (in float). Extremely useful for running a timer within a script.


Example:

float timer

begin gamemode

if timer > 2
   set timer to timer + GetSecondsPassed
else
   ; time's up! Do something.
endif

end