Making a GameMode script run at second intervals
Revision as of 12:41, 11 November 2006 by imported>BiteHandNIN
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 short FirstSecond
begin GameMode
if Timer > 1 ; replace 1 with # of seconds to skip
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.