Hi,
I work on a local multiplayer game, and I've created a map for the menu and a map for the game. Each have there own GameMode. I also made a Game Instance to save info between map (like score, skin of player, ect...)
For my exemple, I have 3 players who want to play, they have to press A on there own controller to validate them-self and add a player in the Game Instance. The first player have to press start button to launch the game map. The game map launch well, but there are 4 pawn instead of 3. The fourth not follow the spawn rules made in the map GameMode (the GM just get the number of player in the Game Instance and do a For Each Loop to add the player pawn where a Player Start is placed on the map, all tagged to avoid collision ect...).
Now, if I set manually the number of players in the Game Instance and launch the map directly in editor, all work has expected: 3 pawn appear, well placed, no more fourth pawn.
Do I miss something? Some value have been send from one Game Mode to another? Even if they are not the same?
Thanks for your help.
EDIT: I tried to unpin "Event BeginPlay" in my game map GameMode and the not wanted pawn spawn anyway!
I work on a local multiplayer game, and I've created a map for the menu and a map for the game. Each have there own GameMode. I also made a Game Instance to save info between map (like score, skin of player, ect...)
For my exemple, I have 3 players who want to play, they have to press A on there own controller to validate them-self and add a player in the Game Instance. The first player have to press start button to launch the game map. The game map launch well, but there are 4 pawn instead of 3. The fourth not follow the spawn rules made in the map GameMode (the GM just get the number of player in the Game Instance and do a For Each Loop to add the player pawn where a Player Start is placed on the map, all tagged to avoid collision ect...).
Now, if I set manually the number of players in the Game Instance and launch the map directly in editor, all work has expected: 3 pawn appear, well placed, no more fourth pawn.
Do I miss something? Some value have been send from one Game Mode to another? Even if they are not the same?
Thanks for your help.
EDIT: I tried to unpin "Event BeginPlay" in my game map GameMode and the not wanted pawn spawn anyway!
Comment