Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | slayertermx |
Hey guys,
I’m trying to make a multiplayer game. So far I have both a Server and Client code. But I recently ran into an issue, maybe cause I’m stupid? Right now, I have it so the client sends data to the server, which works just fine. Now I want the server to send data back to all clients to the server, so all clients know the positions of other clients. Is this not right?
Server code:
func update_puppets():
rpc_unreliable("update_puppet", data, rotation_data)
Client code:
puppet func update_puppet(puppet_data, puppet_data_rotation):
speed = puppet_data["speed"]
velocity = puppet_data["velocity"]
x_delta = puppet_data_rotation["x_delta"]
rotate_y = puppet_data_rotation["rotate_y"]
I get an error:
RPC ‘update_puppet’ is not allowed on node (path of the player ID) from 1. Mode is 3, master is 52950161.