Default script for multiplayer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By slightly_seasoned

Is it possible to make a default script for players in a multiplayer game? Not adding multiplayer into my game yet, just asking.

:bust_in_silhouette: Reply From: stalker2106

Your question is quite missing some details, but i will try to answer it the best i can.

Any code you write withing Godot can basically become multiplayer. Godot actually implements a dead simple high level API that i recommend you to document about: API multijoueur de haut niveau — Documentation de Godot Engine (4.x) en français

When writing your player script, you can use rset methods to synchronise variables, for example your player node’s position with other players. RPCs also allow you to call functions on clients, multiplayer is a wonderfully rich topic which you should document yourself in to master!

Cheers

I meant to say, how to make a default script for players with some variables, movement, etc. & attach it to other players.

slightly_seasoned | 2021-04-29 19:19