GetSecondsPassed
Revision as of 14:52, 14 February 2006 by imported>Maturin
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 > 0 set timer to timer - GetSecondsPassed else ; time's up! Do something. endif end