Nestharus, I just found a new way to handle my spawn system (For my map):
Instead of 7 timers, I'm using something like this:
library Spawn
globals
private integer C = 0
endglobals
private function B takes nothing returns nothing
set C = C + 1
if 0==C-C/30*30 then
call S1() // Spawn function
endif
if 0==C-C/42*42 then
call S2() // Spawn function
endif
if 0==C-C/60*60 then
call S3() // Spawn function
endif
// etc... more if blocks
endfunction
private module Init
private static method onInit takes nothing returns nothing
call TimerStart(CreateTimer(),1.0,true,function B)
endmethod
endmodule
private struct Inits extends array
implement Init
endstruct
endlibrary
It's a huge improvement
Isn't it? ^^