x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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. :)

Product Version: UE 4.13
Tags:
more ▼

asked Sep 24 '16 at 12:13 AM in Blueprint Scripting

avatar image

VashTheBrutal
33 5 6 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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!

more ▼

answered Sep 24 '16 at 12:41 AM

avatar image

Night Watcher
1.7k 43 12 71

avatar image VashTheBrutal Sep 24 '16 at 01:05 AM

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.

avatar image Night Watcher Sep 24 '16 at 01:08 AM

Anytime, and if you get stuck let me know

avatar image VashTheBrutal Oct 02 '16 at 11:30 PM

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

avatar image Night Watcher Oct 03 '16 at 02:27 AM

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

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question