HOW do I slow my aiming?
Hey mates. I'm kind of frustrated because I have NO IDEA how I can slow my aiming down sights camera boom zoom? When I zoom in, it's very fast and choppy. I need to know how to slow this down. I have been told 'use timelines' or to 'use lerps', but I have NO IDEA, as said before, how to do this.
My blueprints are attached below. If you're going to tell me what to do, please be elaborate, and PLEASE, POST PICTURES.
Thank you, I love you all. You all deserve ice cream. :)
asked Dec 14 '15 at 08:30 PM in Blueprint Scripting
It sounds like you are most of the way there. I have provided an example below on how you can use a timeline to lerp between two values. I hope that this information helps.
You will want to create a timeline by right clicking the event graph and searching for timeline. Once you have the timeline you can double click it to open it and it will look like the picture below. From there you will want to make a new float track. In my example I have timeline going from 0 to 1 over 3 seconds. The reason I am using 0 to 1 is because a lerp node typically uses values between 0 and 1 (thinking of it as 0% to 100%).
Here I have created a blueprint that uses the timeline that we made above. When ever the 'F' key is pressed it starts or reverses the timeline (going from 0 to 1 or 1 to 0 respectively ). From here I clamp the output of the float track between 0 and 1 to help eliminate float point errors. If you look closely at the two values that I am lerping between you will see the values that were given in your example screen shot. This means that when the 'F' key is pressed the Target Aim Length will go from 60 to 100 and then 100 to 60 when the key is pressed a second time.
Make it a great day
answered Dec 14 '15 at 09:23 PM
Rudy Q ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here