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 RunsEverySecondScript▼
float Timer▼
begin GameMode▼
if Timer > 2 || FirstSecond == 0▼
set Timer to 0▼
set FirstSecond to 1▼
 
;Code▼
▲ScriptName RunsEverySecondScript
endif▼
set Timer to Timer + GetSecondsPassed▼
end▼
 
▲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
 
This page took far too many edits to get right.
 
 
 
 
that was easy...
I found it hard at first to figure out, so I decided to post it.
Anonymous user

Navigation menu