Does creating a new node in a multiplayer game propagate to other clients?

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

If A is the host, B and C are clients connected, if A creates a node and adds it to its scene tree, does it propagate to B and C? Does it work the other way as well?

:bust_in_silhouette: Reply From: MxtApps

I think the following:

If that nodes were created before the connection with the visual editor or with code, they will be in all devices, if the code allows it, but the nodes created after the connection will not be propagated. If you want to do it, you need to syncronize the variables with the rset function and do the functions (that functions must be declared with remote func) that you want in all devices using the rpc_unreliable function, both functions from GDScript.

I hope this will be useful for you.
MxtApps :slight_smile: