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"

How do I add input that moves the player camera up and then resets to the original camera pitch?

I have a First Person Character set up with a gun. When I shoot the gun, I want the player camera to pitch up and when I stop shooting, I want the camera to return to the pitch the camera had before I shot the gun.

Product Version: UE 4.12
Tags:
more ▼

asked Jul 19 '16 at 03:03 PM in Blueprint Scripting

avatar image

_eni
47 11 15 14

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

1 answer: sort voted first

You can do it on the character or AnimBlueprint. Interpolate the pitch while it bucks up to whatever the starting pitch was plus a saved value for the pitch change amount, then drop it back to the starting pitch. There is a Rotation Interpolate node.

You will need to set a gate, or check for a bool flag if it is to be in kickback or whatever you want to call it. Reset the pitch maybe each time you fire.

It will take some experimentation for you to get the feel of it how you want it.

more ▼

answered Jul 19 '16 at 03:45 PM

avatar image

mikepurvis
2.5k 102 67 261

avatar image _eni Jul 22 '16 at 04:08 PM

Thanks, I'll try it out and let you know.

avatar image _eni Jul 22 '16 at 07:32 PM

I am having trouble figuring out to add pitch to the camera. What node do I use?

avatar image _eni Jul 22 '16 at 07:44 PM

I just found out a way to add pitch to the camera. I am trying out the reverse you mentioned.

avatar image _eni Jul 22 '16 at 07:51 PM

How can I get the current camera pitch?

avatar image _eni Jul 26 '16 at 11:03 PM

How can I get the current camera pitch?

(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