Godot Version
4.6
Question
I’m still figuring out Networking and RPCs, and I’ve ran into a potential hiccup. I am trying to on the press of a button by the client send data from that client to the host and then have the host RPC a function for everyone to carry out with the clients sent data. However the method I’m doing this seems a little inefficient.
Normally It’s useful to include code but I think in this case it complicates matters.
Essentially I have the button’s pressed signal activate a function that calls a second function via rpc_id on the host
the second function called by the host then performs an rpc call for the main function I want to do with the data from the client.
(Note I do have my functions set up right for rpc.)
What would be a good way to have say a client send data to a host so they can use it to do a rpc on all clients?