How to use different GameModes for one level in a Multiplayer Game with Blueprints?
First of all, I know the different possibilities to set the GameMode for a game/map (Link2). Futhermore, I did some research on this topic, found some similar threads/questions (most, however, on earlier engine versions) and also this solution using C++.
Anyway, since this solution is from 3 engine-versions ago, I still hope for a BP-based solution for this issue. We are creating a game with currently 4 different GameModes (all based on one parent class) and levels which are set up to work with all GameModes. To add each level 4 times would waste resources and to put the logic for all game modes into one BP seems to be anything but best practise.
To change maps, our prototype uses the ServerTravel command, as it seems to be the best/only option. If we could use Open Level instead, this would allow us to change the GameMode with the passed options...
So, is there currently a possibility to to use different GameModes for one level in a Multiplayer Game with Blueprints?
asked Feb 04 '16 at 11:14 AM in Blueprint Scripting
You can create a BlueprintCallable function in C++ that will allow you to use ServerTravel with options in your blueprints.
I made a function in my GameMode as follows:
Then in the .cpp I made
Then in the blueprint I just call the GameMode and add the Server Travel node. This is your best bet for a ServerTravel with options.
answered Feb 05 '16 at 12:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here