Camera change from 3rd person to RTS

Hello community, i have 1 question.
How can i change cameras between 3rd person and RTS?

i want to create a “hybrid” of rts and 3rd person. i want to change cameras when pressing some key and want to change whole interface. how can i do it?

thanks you in advance. :slight_smile:

You are asking how to make an entire game system, which is really hard to answer in one paragraph, but I’ll do my best.

I am going to assume that you know how to use blueprint. This solution might not be the best approach as I’m trying to simplify the process as much as possible, nonetheless it should get you started.

You need to:

  1. Create you Third person system: A good starting point would be the third person template, congrats you just completed the first step.
  2. Create your RTS system: Then you need to create the RTS system. Let’s keep it simple, and let’s assume that the camera cannot move and that it is just somewhere in the sky. To do so, just add a second camera to your character’s Blueprint, and rotate it to face the ground. Now add to your event tick “set actor location” and connect the RTS camera to it, and set it to whatever location you want the camera to stay (that way the camera will keep its location).
  3. Create your switching system: Great now let’s make a button that switch between the two cameras. Add an” E key press” event to your blueprint, and on event click call the function “Set View Target With Blend” it takes a camera and the player controller as input. Then make the event toggle between the two cameras.
  4. You kinda have your system, now of course you need to make a usable system, like switching the controls of the player to something more practical for the different camera views. Maybe you want to transition between camera and not instant switch, maybe you want to hide the interface. Or even you want the mouse to make the camera move in RTS mode. (Feel free to ask independent question for each topic mentioned)

Hope this helped!

Anytime, and if you get stuck let me know

thanks for answer. i think this will help me.
i allready have a 3rd person template with some blueprints like switching camera to first person and some settings widgets. i will try to make rts camera.
and again thanks for answer.

Hello Night Watcher.
Can you give me your skype (if you have) ?

I’m sorry, I can’t do that, but you can ask your question on asnwerhub, and let me know so I can answer it

Hi… i know im probably pretty late, but i really wanted to ask since i cant find a solution anywhere else. On step 3 you mention using the “set view target with blend” and to make the event toggle but I somehow am unable to do that, if you could please help me I’d really appreciate it : ) (the camera i get are unable to connect pins with the “set view target with blend”)