AddForce to Player Pawn in Multiplayer Setting

Hello Everyone,

I am currently trying to press a button, line trace to a point, spawn an actor at the hit location, then apply force around that point, while replicating in multiplayer. On a normal prototype I can just handle it through the third person char blueprint, but when replicating and using the “Get controlled pawn” node, I am unable to achieve the same effect. Is there any way around this to apply the same force?

  • The spawned actor must apply the force. It must also be set to replicate (Class defaults → Replication).
  • The Server must spawn the actor.

Flow Logic

  • Client presses input. Client does a local trace to determine if you can spawn the actor.
  • If client trace is good, RPC server to do a trace and spawn the actor.

Server needs to use Base Aim Rotation and Camera Manager → Get camera location for an accurate trace (matches clients).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.