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"

Changing character's follow camera location through blueprints


I would like to change the character's follow camera and/or character boom through the use of blueprints. Specifically, I want to create a blueprint of a box, place it in the world, and when the character actor overlaps it, it changes that characters follow camera and/or character boom locations. This is to get a new view on the character from a third-person perspective.

I could use this method here: https://answers.unrealengine.com/questions/23590/camera-selection-with-user-input.html : However I do not want it to be a level blueprint because I plan on using this extensively, nor do I want multiple cameras because I still want the camera to focus on and follow my character.

Any help is appreciated.

Product Version: Not Selected
more ▼

asked Apr 27 '14 at 08:32 PM in Blueprint Scripting

avatar image

1 3 6 7

avatar image Kavas Apr 28 '14 at 11:16 PM

So I've been working on this for some time now, and I'm learning a lot about blueprints through trial and error. Here is my code thus far:

alt text

I made a blueprint, which contains a mesh less box shape. When the player character overlaps it much like a trigger, it will get his attached camera component and move it based on the values set on the box. You can adjust the location vector and the interpolation speed on the box. I use this for side scrolling game as the player moves throughout the stage the camera will adjust accordingly to the level and what I want them to see, otherwise the camera cannot be changed.

Some problems that I got stuck on:

  • Because I am using the starter example map, there was already a blueprint for the blue guy called MyCharacter. I created another blueprint in another folder also called MyCharacter which was another character actor that I imported and took control of. When trying to discern between the two, UE4 could not tell the FollowCamera component on my character unless I changed the blueprints name..

  • My blueprints main issue is that if I wish to use it for another character I would have to change the "cast to" from dark knight to the new character name. If someone knows a way to make it just detect the player and get his 'followcamera' component that would be great.

  • I know it's hard to see but the relative location node of the follow camera, unless I have it directly hooked up to the 'current' slot on VInterp to node, it wont zoom in or out. I'd like to clean it up a little by using a 'current' location node.

Lastly, I'd like it so if the character backtracks through the stage, the camera location would be reversed.

Maybe there is an easier way to do all this.. seems like there should be. I'm just new at Unreal :)

This video should give you an idea of what I am trying to do..


(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
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