Quick question: does the map initialization trigger fire once for the map itself, or once for each player?
I would expect it to fire for each player. But then, how do I get the player's number since the EventPlayer() is not active for the initialization trigger... or is it?
once per game but you can use the function pick each player in player group and do actions
picked player is a integer so you can use it to do something for each player :)
Perfect, thanks! Are there any other triggers that only fire once per map, or is map initialization the only one?
Edit: wait that doesn't make sense. So are all global variables synchronized among all of the players? In other words, do I need to make every variable into an array in order to store different values for each player?
Example of what I want to do in theory (pseudo code):
Quick question: does the map initialization trigger fire once for the map itself, or once for each player?
I would expect it to fire for each player. But then, how do I get the player's number since the EventPlayer() is not active for the initialization trigger... or is it?
What are you trying to do exactly?
once per game but you can use the function pick each player in player group and do actions
picked player is a integer so you can use it to do something for each player :)
All code is synchronized, it fires once.
@khazr: Go @caspersc: Go
Perfect, thanks! Are there any other triggers that only fire once per map, or is map initialization the only one?
Edit: wait that doesn't make sense. So are all global variables synchronized among all of the players? In other words, do I need to make every variable into an array in order to store different values for each player?
Example of what I want to do in theory (pseudo code):
Does it instead need to be:
??