Input going off twice on Client but once on server.

I really just need someone to point me in the right direction to figure out why my input action goes off twice on the client side but once on server. I thought it might have something to do with the RPC event, but it doesnt seem to be the case after many breakpoint tests.

EDIT: After a bit more looking around i noticed the following.

  1. Begin player event goes through normally.
  2. Begin Play > Cast to Player > Begin Play > Cast to Player > Then continues through the rest of the nodes.

Because the input is being executed by the client and the server.


Input → Switch has Authority (REMOTE) → RPC Fire Weapon

RPC Fire Weapon (Run On Server) → Fire Weapon

– The RPC event should be set to “Run on Server”.

Thank you for your reply. This did not change my issue. The firing event still triggers 2 times. and will therefore cause 2 hits on it’s target and should only be one.

If you coded it up as I noted then only the server should fire and do so once.

Dedicated server…

image


Listen Server…

1 Like