Camera in game is in different location then where it's set in blueprints

The issue I’m having is whenever you aim down the sights on your gun the game is supposed to switch camera to my “ADSCamera” which is socketed to the gun so as the player you can actually see and manually aim the gun.
Everything looks just fine in the blueprints until you play the game and aim, you can see it does switch cameras but the camera location is noticeably off from the socket it is attached to.

Two pictures of where the camera is socketed. The camera does move with the gun in his ADS animation.


The only code I have for when you press the aim button.

What you actually see in game… Significantly off. I am not concerned with the culled geometry, only the camera location.

The camera animates with the gun but why is it not in the same location as that socket it’s attached to?

1 Like

Hey try moving the camera location it should work

Well that didn’t work but it did show me something I didn’t notice before. Apparently as long as the camera is attached to the socket, me moving it around makes no difference whatsoever.
Below you can see a screenshot from when my camera was right on top of the aiming socket. And a second picture of when I moved the camera about 20 units left and 6 units up. The in-game ADS cam was in the exact same spot.



I also prefer to have the default socket location working because I have numerous guns in game and it’d be a pain in the bumbum to manually move the camera trial and error style to the perfect location for each weapon.

Try attaching the Camera to a socket in your gun and adjust the socket in your gun that it points your gun scope

I have attached a picture of the aiming socket, it is lined up just right on the gun and the camera is attached to it.

Next picture is of the camera attached to the aiming socket. The camera moves with the gun in the correct location in the viewport.

The last picture is what you actually see in-game, camera location is significantly off.