Making a GameMode script run at second intervals

From the Oblivion ConstructionSet Wiki
Revision as of 12:46, 2 June 2008 by imported>Haama (Removed Prod)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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