Any idea how to do it? Basically what I mean is this:
My map has a 6 player lobby, with 2 teams.
Obviously with 6 players, everyone would spawn fine on two teams in the proper placement. However, say I wanna do a 1v1 or a 2v2. When I'm in a lobby, and invite a friend, then put him on the other team then start the game, he still ends up on my team and spawns next to me because the lobby still considers him as player 2 because he was the 2nd person to join.
Any idea how to fix this? How to create a spawn system (possibly using if/then's?) that will spawn players accordingly depending on their placement in the game lobby or just balance based on the amount of players?
Can't tell if I'm just dumb and missing something simple or what cause I can't find anything on the issue.
Well I don't mind using the team placement methods in the map settings, however they don't seem to be working correctly for me and always spawn oddly. Do you if the (Pick Player 1 from (players from team 1) triggers will refer to team 1 and 2 in the lobby/in the map settings?
Or possibly do some if/then triggers where like if number of players = 2, pick player 1 from active player to team 1, player group, then the same for player 2 to player group 2, then spawn based on player groups? I think I'll try that now.
Edit: I think my last idea worked actually. I just did if/then's for If > (Number of players in (active players)) == 2, then...
Then I did the same for if active players is 4 or 6. I'll test it in a bit but I think it should work like a charm. Thank you! The last part of your post gave me the idea and I can't believe it was that easy and it never even crossed my mind haha.
Do you if the (Pick Player 1 from (players from team 1) triggers will refer to team 1 and 2 in the lobby/in the map settings?
Pick player X from <group> selects based on the index of the player in the group, which is assigned in join order. For example, if I add player 4 to group A, player 4's index within group A is 1. If I then add player 8 to the same group A, player 8's index within group A will be 2. Join order also applies to game lobbies.
Any idea how to do it? Basically what I mean is this:
My map has a 6 player lobby, with 2 teams.
Obviously with 6 players, everyone would spawn fine on two teams in the proper placement. However, say I wanna do a 1v1 or a 2v2. When I'm in a lobby, and invite a friend, then put him on the other team then start the game, he still ends up on my team and spawns next to me because the lobby still considers him as player 2 because he was the 2nd person to join.
Any idea how to fix this? How to create a spawn system (possibly using if/then's?) that will spawn players accordingly depending on their placement in the game lobby or just balance based on the amount of players?
Can't tell if I'm just dumb and missing something simple or what cause I can't find anything on the issue.
@Trieva: Go
Well I don't mind using the team placement methods in the map settings, however they don't seem to be working correctly for me and always spawn oddly. Do you if the (Pick Player 1 from (players from team 1) triggers will refer to team 1 and 2 in the lobby/in the map settings?
Or possibly do some if/then triggers where like if number of players = 2, pick player 1 from active player to team 1, player group, then the same for player 2 to player group 2, then spawn based on player groups? I think I'll try that now.
Edit: I think my last idea worked actually. I just did if/then's for If > (Number of players in (active players)) == 2, then...
Then I did the same for if active players is 4 or 6. I'll test it in a bit but I think it should work like a charm. Thank you! The last part of your post gave me the idea and I can't believe it was that easy and it never even crossed my mind haha.
add an ai on each team, then check if player is allied to ai
Pick player X from <group> selects based on the index of the player in the group, which is assigned in join order. For example, if I add player 4 to group A, player 4's index within group A is 1. If I then add player 8 to the same group A, player 8's index within group A will be 2. Join order also applies to game lobbies.