Making a GameMode script run at second intervals

From the Oblivion ConstructionSet Wiki
Revision as of 02:51, 21 May 2008 by imported>Vswe (Took away my signature)
Jump to navigation Jump to search

This page explains how to make a non-quest GameMode script run once every second, or two seconds, or whatever.



scn EasierRunsEverySecondScripy
 
float Timer


begin GameMode
if Timer <= 0 
	set Timer to 2
	;Code

endif
set Timer to Timer - GetSecondsPassed
end