Making a GameMode script run at second intervals

From the Oblivion ConstructionSet Wiki
Revision as of 12:51, 11 November 2006 by imported>BiteHandNIN
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.



ScriptName RunsEverySecondScript

float Timer

begin GameMode if Timer > 2 || FirstSecond == 0 set Timer to 0 set FirstSecond to 1

;Code

endif set Timer to Timer + GetSecondsPassed end



that was easy... I found it hard at first to figure out, so I decided to post it.