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"

Change camera animation on Trigger

Hey Everyone,

I was wondering if anyone could point me in the right direction here. I currently have the Side Scrolling template loaded in UE4. I'm trying to make it so that when the player steps into a trigger volume, the camera and player rotate 90 degrees and go along a different path (and axis).

I think the best approach would be to set up a Trigger Volume (Blueprint) and Camera (Blueprint). So when the player steps into the trigger the "current" camera is switched to the blueprint camera (which completes an animation of the camera moving 90 degrees).

I hope this makes sense and please let me know if I'm not being clear enough.

Thanks for reading!

Product Version: Not Selected
more ▼

asked Oct 17 '14 at 11:32 PM in Blueprint Scripting

avatar image

16 4 4 6

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

1 answer: sort voted first

Depending on the effect you could rotate your main character with a set camera inside of that blueprint at a certain distance from the main character.

It certainly could look cool and you can get rid of the "old" level in the background (the 90° one) and prevent overlaps by loading / unloading those parts of the level exactly when you enter that volume or otherwise trigger the rotation.

I didn't work with the locked axis yet but it should be able to be changed in runtime. Have you tried searching "Set" inside of your character BP? One of the nodes displayed in the context menu should contain what you're searching for.

If not give me a heads up and I'll look if I can find anything tomorrow (won't be back on my PC today) ;)

Edit: Aw my bad. It's currently not possible to change the locked axis. It will most likely be added in 4.6.

Sorry for that. You could work in the meantime with simply adding movement input in the direction you want. It will allow you to test though it will probably break a few times by the character flying out of the way.

Though if you can hold on till 4.6 you can add it easily. Or you do it via C++ or add the code from the guy in this post. He already created something like this via C++ and I believe he made the node.

more ▼

answered Oct 18 '14 at 12:04 AM

avatar image

5.9k 291 86 293

avatar image Ant.IAm Oct 18 '14 at 12:09 AM

Hey Erasio,

That's the other approach I was thinking (and currently trying to do). I've been searching for the appropriate node for ages. I set up a Camera Animation sequence and was trying to set the camera to follow that sequence when the trigger occurs but I can't see anything like "Play Animation" or "Set Animation".

However I think what you're specifically referring to is "Set World Location" and "Set World Rotation"?

avatar image Erasio Oct 18 '14 at 12:38 AM

Yes indeed.

More of the "Set World Rotation". A consistent rotation can be achieved by using the Vinterp node which will output a point between a defined startpoint and a defined endpoint closer to the endpoint by "Speed" which you can define as well.

You could also use a timeline. An animation is more for the character itself or scripted events.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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