Is there a way to change the game mode dynamically

I want to make a RTS that can switch to a 3rd person mode for a clans hero actor dynamically through a button and I’m wondering if there’s any way to do that in Unreal 5?

The topic of the question is “change game mode dynamically,” which is a very different thing from “change camera dynamically.”

Changing game mode is something you do to change the rules of the game, which players are admitted to multiplayer games, and so forth.

Changing the camera just needs changing the camera. You can have two camera components on a character or other actor. You can mark one inactive and the other one active.

You can also attach a second actor (a camera actor) to the player pawn, and make it follow the player; when you want the overhead camera, you simply call SetViewTargetWithBlend on the new actor. When you want to switch back, you SetViewTargetWithBlend on the pawn again. (The “view target” is “the actor that determines the player view” which is kinda a confusing name if you ask me …)

2 Likes

Oh ok that makes sense. Thank you!