RPC referencing level objects with different instances ID's on different machines

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By supagu
:warning: Old Version Published before Godot 3 was released.

I’m trying to get multiplayer working using the high level networking in 2.2.

I am passing an object to an RPC function. On the client that calls the RPC function, the RPC function gets called and has a valid pointer to the objects. On the other client, I get null pointers.

I have debugged the instance_id for these objects and noticed they are different on the two clients. I assume this instance id is meant to be the same on both clients inorder for a correct reference to be obtained. So these objects I am referencing are just objects in the level.

How do i fix this problem?

:bust_in_silhouette: Reply From: supagu

answer is provided here: