GetSecondsPassed

From the Oblivion ConstructionSet Wiki
Revision as of 14:52, 14 February 2006 by imported>Maturin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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