I’m trying to setup the blueprints on Third person pawn…
I’ve finally managed to get Pitch and Yaw to replicate in multiplayer using blueprint… Next thing i need to Fix is my sprint function, which don’t replicate the running animation on the clients but it do change the max walk speed…
I am not sure how your setup works, but wouldn’t it be easier to just incorporate the sprinting into your locomotion? I mean as soon as your velocity exeeds a certain walking velocity, then blend in sprinting.
Since actors should handle velocity replication by default, this would pretty much solve your problem.
If you want to play a custom function then you pretty much have to replicate a switch, that your anim blueprint can read. Which means if your client wants to start sprinting -> ask server for the sprint -> replicate bIsSprinting or whatever to clients -> the clients should see others sprinting.
But after some experimenting I got running animation replicating to all clients…
The problem now is that I’ve made 2 timelines to smooth in/out the running speed, and the animation is not replicating that… So when I release the sprint button the run animation stops immediately but the timeline takes 1 second to slow down to walk speed.
Here is my sprint blueprint:
How can I fix this?
Edit:
I tried using a delay which seemed to work, but made some issues when I went from sprint to idle…