Making a GameMode script run at second intervals

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