I have a traditional FPS game where the crosshair moves with the main camera (which is attached to the player) and stays centered in the middle of the screen.
However, in one scene I want to have something similar to a traditional gunfight where the Player faces off against an enemy where both are standing still in a fixed position. In this scenario I want to only move the player’s right arm holding a pistol and then have the crosshair move on the screen in the direction that the pistol is pointing. So at the beginning the pistol may be pointed almost down toward the ground and then you should be able to raise the arm with the mouse and put the crosshair on the enemy so you can shoot the enemy.
Then I need to be able to shoot a raycast to the point where the crosshair is.
I hope this makes sense what I’m asking.
So before implementing this part I started working on just moving the right arm around with the mouse and that isn't working like I thought it would. You can't just change the angle like you do with the camera, but I'm stuck on exactly how to do this part.
– waltercl