- Joined
- Jul 10, 2007
- Messages
- 6,306
function CodeRegisterGameStartEvent takes boolexpr c returns nothing
call ev.register(c)
endfunction
function CodeRegisterGameStartEvent takes code c returns nothing
call ev.register(Filter(c))
return // pJass needs this.
endfunction
Does the game start only when all players have finished the loading, and then it never starts if not every players have sucessfully loaded the map ?
Or is there a max time, and then if it's reached the game starts anyway ?
And if you select one unit with GetLocalPlayer, player events can fire while the player is not already in game ?
The first ok, but let's say we have X players and you don't remove the unit, or even try to deselect, so it will fire X events.
Then when all of the X player events have trigger the trigger, it's still possible that all players have not completely loaded the game ?
How can I implement your Game Start System ?
Im noob in Jass, Im Gui user.
I got desync 1 or 2 sec after my map start, want to try your code.
Should I paste it into Custom Script Code window?
Do I need to copy other Snippets? (Thread snipped?)
thanks, Zibi
GameStart.run
to GameStart.init
? It is just executing GameStart.run
or am I misunderstanding something.Useless. How to detect when not all players have finished loading? Is it possible with war3's packet sync model?
Network
and Codeless Save/Load
.