I’m trying to make a multiplayer game using sessions and need players to spawn in without spawning on top of each other. I’m playing around in the game mode and feel like I’m close to figuring it out, but I’m missing something or I’m not understanding something. I should be able to retrieve Player ID’s and have the game assign each Player ID to a specific Player Start, right? How would I accomplish this using Blueprints? If this is not the right way to do what I want then what is?
For some reason, even though there are plenty of guides and documentation on how to use Sessions there is nothing explaining the simple concept of “Player 1 starts here and player 2 starts there.” Any help would be awesome.
use getallactorsofclass on playerstart (or anything), save it to an array. when a player joins assign it an index, that’s the index of its player start.
That sounds simple enough, but if i create a simple array of two Names (player1 and player2) and those Names are also set to two PlayerStarts how would I determine that the host is always spawned at player 1 and the second player is always spawned ay player 2?