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"

Lock Camera While Animation Plays ?

So I have a character and when R is pressed an animation is played, which links to an ability that is turned on, (That all works)

But the camera is only disabled and locked in the last position the player had it in before hitting R

I want to camera to always lock in the max look down (see the attached screenshot)

alt text

and then play the animation and when it ends unto the lock and allow the player to resume

heres the code I have for playing the animation at current

alt text

I just cant figure out how to lock the camera in the position I want (which is the first screenshot)

Any advice or help would be great

Product Version: Not Selected
maxlookdown.png (946.2 kB)
play.png (157.8 kB)
more ▼

asked Jan 08 '16 at 05:03 PM in Blueprint Scripting

avatar image

41 23 15 21

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

1 answer: sort voted first

I guess you could just get the camera spring arm component, drag off a wire and "set target arm length" to set the desired distance, then you could make the whole camera boom arm or whatever camera structure you are using, to just set its rotation with something like "set actor transform" or something similar that works. To make the whole switch smooth you could interpolate the rotation values with delta rotator or a simple float interpolation. Here is a screenshot of how I reset my camera smoothly to be at a given distance, behind the player, at a given pitch:

Logic TimelineSmoothingWeight

more ▼

answered Jan 08 '16 at 07:57 PM

avatar image

66 1 6 9

(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