Whats the better method for replication?

im planning to make a fps game (ye very original) but I need to know what method is more efficient and more memory friendly for handling animations and raycasting:

  1. server animation replication (basically the players send a R Event to the server saying they want to do an animation and then the server sends to all clients the player data and what animation to play and basically this method for almost any process in the game
  2. local player animations simulated locally and sending R Event to the server to send to all other players except the localplayer to play the animation for the localplayer on the other players side and for raycasting it would be that the player sends the raycast coords to the server and the server does the raycast and like the effects

for animations, neither.

This is pointless, if you play an animation on the localplayer from the client, it already replicates to the server, and therefore, other clients. This is due to network ownership.

So just playing the animation from the localplayer is enough.

1 Like

alr thank you bro i actually didnt know that animations were already replicated to the server like I thought that since its local then I need to replicate it for all via remotes but thanks for that knowledge, it will help me out a ton

1 Like

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