How to check which game mode is active?
Currently I have two different game modes active. Inside an actor, I want to know which of those two is currently active, because the actors needs to do different things depending on the current game mode. How can I see which of the two different game modes I created is currently active?
Thanks a lot!
asked Sep 19 '15 at 11:44 AM in C++ Programming
You get game mode as jeff said and then how compire UClasses, theres 2 ways
This way you check if UObject is specific class
Its the same but diffrence is it also returns true if class is not inputed class but related to it, so if you input AGameMode it would always return true.
Obviuesly you can use that on any UObject not only AGameMode
I'm not entirely sure why you would have two game modes going at once - Unreal doesn't currently have support for changing the GameMode at runtime.
Generally speaking, you can get the active game mode using
There is a
Can you explain a little more about how and why you're using two game modes? Maybe I can offer more useful information if I understand that.
answered Sep 19 '15 at 01:27 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here