Godot Version
4.4
Question
if not is_multiplayer_authority(): return
if(name != "1" and not registered):
enterdata.rpc_id(1)
registered = true
@rpc("any_peer")
func enterdata():
print("This was run from: " + name);
Output:
This was run from: 285189462
I wonder why it doesn’t run from the peer that I am calling the rpc_id with. Also, the name of the character is the peer_id. The output should be “This was run from: 1”. RPC’s logic kinda confuse me… Any help is appreciated!