Line Trace Only Replicates Horizontal and Not vertical movement

Hey there, as the title states im having an issue where my line trace works perfectly fine on the server and follows my rotation, but on the client it only shoots straight, been trying to figure this out all day, heres a video showing what I mean: Desktop 2019 01 06 02 01 37 27 DVR - YouTube and here is my blueprints:

The first blueprint is my projectile blueprint and the second is running on the FirstPersonCharacter BP, pretty new to this so any help would be greatly appreciated!

the video seems to be unavailable.

should be fixed now

The pitch of your camera is not being replicated. that’s all.

The movement component is “for your legs”, what you’re doing with the camera you need to pass on manually.

I’m on a bit of a hurry now, but if that’s not enough i can give you a deeper answer in like 12 hours.

Ahh okay, I’ll try and figure that out now, thank you!

YOU ARE A SCHOLAR AND A SAINT MY FRIEND. All I had to do was turn on Get Controller Rotation pitch in my character BP if anyone else stumbles across this.

Hey man, what do you mean turn on controller rotation?

I’m stuck with this issue but I’m still fairly new so have no clue how to implement that.

The server projectile should be using a server calculated spawn transform. Your current implementation allows me to tell the server where I want my projectile to spawn at. This is extremely open to client-side cheats. Never, Ever, trust a client.

Should be similar to the following…

1 Like