Difference between revisions of "Making a GameMode script run at second intervals"

Jump to navigation Jump to search
m
no edit summary
imported>BiteHandNIN
m
imported>BiteHandNIN
m
 
 
ScriptName MyObjectScriptScrRunsEverySecondScript
 
 
float timer▼
 
short FirstSecond▼
 
▲float timerTimer
 
begin GameMode
if Timer > 12 || FirstSecond == 0 ; replace 1 with # of seconds to skip▼
set Timer to 0▼
▲short set FirstSecond to 1
 
;Code
▲if Timer > 1 || FirstSecond == 0 ; replace 1 with # of seconds to skip
 
▲set Timer to 0
 
set FirstSecond to 1
 
 
\\\code
 
 
endif
set timerTimer to timerTimer + GetSecondsPassed▼
 
▲set timer to timer + GetSecondsPassed
 
end
 
Anonymous user

Navigation menu