Sockets and line traces

I have been working on laser vision but can’t seem to limit the rotation so it didn’t go behind the player. I have a head look where the camera is pointing control rig and I socketed the line trace and lase effect to the head, hoping that if the control rig limits the turn, it would limit the rotation of the line trace, but no. I have tried pitch and yaw camera manager settings, which sort of works but it affects the laser direction. I have don’t want to use orientation character movement because it then stops the head control rig from working.

I have created guns where I use a trace and spawn a projectile and aim follows the camera, and the line trace doesn’t leave the socket. But I socket to the head and it goes right through my characters head. I don’t understand.

ANY IDEAS?

But you’re setting the end point of the line trace to where the camera is facing, you should get the head bone and cast it to where it’s facing instead.