Pitch of camera not replicated in function



The camera yaw seems to be working no problem and the line trace is replicated from the clients initial position, but the pitch does not seem to replicate, all the line traces are on an eye level plane.

What you got is forward vector from character, yaw always same with Camera, but the pitch of character always 0.

What you need to get is the forward vector of FirstPersonCamera.

The node I am using is the forward vector of the camera.

Nevermind:
In your character blueprint properties, make sure “Use Controller Rotation Pitch” is enabled, then it should replicate just like the yaw.

Nevermind: In your character blueprint properties, make sure “Use Controller Rotation Pitch” is enabled, then it should replicate just like the yaw.

wow…

your Q&A was really helped me.

thanks, bro.

A bit late to the party, but this is what I did to solve it:

In order to get a line trace from the forward vector of my clients camera I added an input to the “Run on Server” event called CameraForwardVector. Every time a player-action fires that event (button press in my example, making a grappling gun) I’d get and send the Forward Vector of the player camera from the client to the Run on Server event.

This way the trace gets done on the server, with the latest forward vector information from the client.

Hope it helps.

Midas