- Home /
Question by
Shenanigator · Dec 15, 2018 at 01:07 AM ·
networkingmultiplayerspawning
HLAPI: How to spawn players from preGameScene
I know it's deprecated, I have no choice.
LobbyScene -> PregameScene -> Gamescene
AddPlayerForConnection didn't work because I don't know how to get the connectionID etc.
I have my lobbyManager, how do I tell it to spawn players in the PregameScene? Is there a way to call the callback the Lobby/Networkmanager usually uses to spawn players? Basically: How do I get my LobbyManager to spawn my damn players on SceneSwitch to the MainGame?
Any help would be greatly appreciated!
Comment
Answer by Shenanigator · Dec 15, 2018 at 05:23 PM
No one? Really just need to know how to call the function that spawns players :(