I want to create a local multiplayer game with a VR and a RTS-Like part and I created a custom game mode for that, handling the pawn spawning and possession.
The issue is that a new game mode object is created for each local player, which breaks the intended spawning behavior as all players spawn on the same location as the same pawn type.
The documentation implies that there should only be one game mode object globally, which leads me to believe that I am missing a point somewhere.
(I had to create several posts due to new users being restricted to one image per post each )
This function of my GameMode BP is fired with the BeginPlay Event:
Hello FelixSab1, thank you for posting and welcome to the Unreal Community.
Your concern is quite interesting.
I am not seeing anything that explictly spawns your GameMode (again) so I would check for any references with reference viewer. This may help you find if anyone else is trying to spawn it in.
I was unsure about the documentation you were referencing, would you be so kind as to share that link if possible.
Another note: Reviewing this video might help you with troubleshooting your player spawning method.
WARNING: This is an external link and as the end user, you are responsible should something happen to your device when you choose to click a link or follow steps that are not endorsed by Epic.
Since you are making an RTS, I would consider using ints rather than tags, if possible. You may need ints for when you implement your turn-taking mechanic.
Just so you’re aware, this topic has been moved from Tutorial & Course Discussions to Platform & Builds - XR Development. I added the optional tag “VR” for you.
Just remember, when posting, please review the categories to ensure your topic is posted in the most relevant space.
I wish you the best of luck in your project endeavors!