True FPS Aiming System

Hello guys, i’m currently working on an aiming system, but so far, i didn’t get what i wanted.

As you can see, the only thing that i am doing is switching between viewports, a camera in my weapon blueprint and a normal camera on my character.

108715-screenshot_72.png

But, doing that my weapon don’t shake when walking, because it’s attatched to the weapon, so all i can see it’s the camera following the weapon.

I don’t think that this is clear but, there is some way to attach a camera to a socket in the weapon mesh and only rotate it following the controller rotation? I mean, set the camera to a default position and only rotate it when aiming up/down? An example of that aiming system you can see in [Squad][3].

Thanks! Hope you guys can show me a way to do that.

not entirely sure what you are asking, and i couldn’t find a youtube example of this. but if it’s what I think you are asking, you can toggle under the camera deteals to enable disable use camera pitch and use camera yaw. you can hook this up to blueprints to trigger with an event

Well, lets suppose that you have a FPS game. When you are walking, your weapon shoud follow the walking animation and you will have difficulty on aiming, alright? Since my weapon zoom camera it’s attatched on the weapon mesh, you can’t see that effect on it. The camera will follow the weapon, so you will not be affected on aiming when walking at all. If necessary, i can upload a video.

Yes, the gun is parented to the sketal mesh. Ii’m not using camera boom.
But there is the thing, the weapon is a separated actor and my zoom camera is parented to the weapon skeletal mesh, so i change the view target with blend between my character/weapon for the smooth transition, as you can see in the EnableADS event.

and your gun is parented to your skeletal mesh? Are you still using your camera boom?

Yeah that looks like something that might work. have you tried just keeping 1 camera, and just setting the world transform to that of the gun (or a scene component parented to the gun) every tick?

Dude, you rock! By doing that i’m not getting the socket rotation, only the transform, and that is exactly what I needed! Thank you, you helped me a lot!

Solved! The answer is in the comments, i can’t mark as solved. Thank you Dalin.

glad I could help!