Aim Down SIghts UE4

Hi guys, i am currently making a true fps game and i have a problem with the aim down sight system. I made the system to set into the ironsight and it is working however when i move the player the ironsight camera also moves with the player making it unsteady(jittering), How do i fix this?

It depends on the implementation, nobody knows how you did this
It would be great to see what it looks like at least




this is how my blueprints are set up

In the Aim Down Sight function, you’re using the wrong current/target for R/Vinterp_To nodes
As I understood you are trying to make a smooth transition from Camera to ADS Cam, but in your blueprint it works as transition from ADS Cam to Camera

Here the camera is located in the weapon which is a different actor, the ads cam is just a cam in the player and the transition here goes from that cam to the weapon cam(this whole function was made using a tutorial)

i was able to fix it, there was a problem with the attaching of the camera and now its fixed. Thank you for your help!

Me who’s been trying to make aiming code for months and eventually jsut gave up-

You need just more practice, the first couple of months I was so unskilled, spent a lot of time on the simplest stuff. After 4 months I was capable to make auto-aiming with prediction mechanism that takes into account position, direction and speed of the target

I’ve been doing this for 8 months ;-;

I got a huge buff when I started the practice of every day committing to GitHub
The key is trying to split complicated things to group of small tasks

:exploding_head:

Also, very helpful to me - I’m doing a lot of comments on each significant or not obvious part of code
It’s quite easy to forget how does it work and it is especially important when you are trying to improve or rework an old piece of code. It is a time saver and it is also a great way to use your own code as a reference. Once you’ve made something you can reuse it later.

Yeah I have many comments. They’re super helpful in just organizing your code.