zooming back when sprinting

i want a blueprint that makes the camera zoom back when the character is sprinting just to have a nice effect

if your camera uses a spring arm you could try increasing its length within blueprint when the sprint event is called.

arm length is set to 300 , i know that this is what is supposed to be changed in blueprints , but i don’t know how to call it in blueprints , basically what i want to do is when the player presses the left shift key the character sprints and the camera zooms back , i did that except the camera , can anyone show me an example ?

The picture posted shows a simple way to accomplish modifying the spring arm length. basically just drag your spring arm into the nodes area then drag off and type “set arm length” which will get you the needed node. I did it with a timeline and lerp so it was smooth transition instead of a jump. the timeline i used just goes from zero to one over 1 second. then after the sprint it just reverses the process. im sure you could accomplish this with less nodes given a little refinement.

Good Luck

couldn’t follow this , here the problems i got :
don’t know if i should start inputaction sprint or no .
the timeline node didn’t have the new track 0 output .
what default value did you give to sprint length ?
what’s sprint ligic ? or you are pointing to the sprint blueprint that i already have ?
i couldn’t set the traget arm length

I set this up on the character blueprint for the sake of simplicity. the line coming into the sequence node would be either a input action, button press (Left Shift in your case), or custom event for whenever you want the sprint action to begin. On the timeline node you have to create a new track. to create a new track double click the timeline node then click the button with f+ on it to create a new float track. the track i created was just to control the alpha of the lerp node so it just needed a value of 0 to 1 over a given about of time (over how long you want the zoom to take one way). For this example i created a sprint that would last only a given amount of time, so it would for example be a sprint that lasts a few seconds (more of a burst of speed than a constant run). The sprint logic is however you plan to change the characters speed for example modifying their base walk speed to a greater amount. To set he arm length you need to get a reference to it, if its on the character blueprint you can just drag the springarm from the hierarchy panel (usually fount on the left) to the node area then drag off the node created. If your trying to get a reference to the springarm from another BP then youll need to cast to the character BP. Oh and if your using the ThirdPersonBP template the springarm name if different its something like CameraBoom. Let me know if you need more help on this one and i will create it in blueprint after work. Hope this helps. Good Luck.

Thanks alot its working , i had to do some adjustments but , thank you , and yes in thirdperson_BP its called CameraBoom

Glad to hear you got it working. I also made node setup to sprint as long as you hold the button down too.

Hi, When pressing sprint button several times, the camera moves away much

try presssed and released node ,

… just also to mention, if you look at the Spring Arm Component… experiment with Enable Camera Lag and Enable Camera Rotation lag

… basically it --more or less-- does automatically what Thompson is talking about, although Thomson’s setup give you more control

why not use camera lag

you mean like aNorthStar mentioned on feb 15