I am trying to make an online game with a maximum number of players per room. I did the spawning method in Blueprints and for some reason it spawns the host multiple times instead of waiting for other players to join the room.
Also there is an error coming back every time I run the project:
PIE: Error: Blueprint Runtime Error: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue from function: 'SpawnPlayers' from node: Possess in graph: SpawnPlayers in object: BuildingEscapeGameModeBase_BP with description: Accessed None trying to read property CallFunc_GetPlayerController_ReturnValue
I have tried to look it up and all I found is using IsValid node but it does not necessarily solve the problem. I could use some assistance with this please.