Making a GameMode script run at second intervals

From the Oblivion ConstructionSet Wiki
Revision as of 12:34, 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.

Code

scn MyObjectScriptScr float timer


begin GameMode if Timer > 1 ; replace 1 with # of seconds to skip set Timer to 0

\\\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.