How to sync different players?

Godot Version

v4.2.2.stable.official [15073afe3]

Question

Hi everyone

In my godot project (fps) I would like to have two types of players:

  • One that is meant to only exist locally and has all the movement fonctionalities, has no model (camera is first person) and weapons are rendered in another scene to avoid clipping
  • The other one that represents the local player in other instances of the game and is stripped down of all the locally managed stuff (movement) and has models and stuff

How would I sync the local player’s actions with the remote simpler one?

Thanks a lot for taking the time to read and sorry for my bad english

Use a MultiplayerSynchronizer. Only add it to the instance that needs to broadcast the relevant multiplayer info.

1 Like

Thanks a lot for taking the time to reply to my post!

I finally figured it out, in case someone finds this post later on, I have a scene called base_player which only contains the nodes included in both the local and remote version of the player. When the root node of this scene enters the tree, it checks whether or not it has multiplayer authority and, when that condition is met, adds the local components (cameras & stuff) as children