+1 vote

id can be passed in rcp as well
why use rcp_id instead of rcp?

in Engine by (24 points)

I didn't understand your question. Could you please elaborate on what "rcp" and "rcp_id" are?

@Ertain: It's about Networking, if you're interested take a look here.

1 Answer

0 votes

An rpc (not rcp, it stands for Remote Procedure Call!) will be send to all other known peers, whereas rpc_id will be only send to the one owning that peer-id. You can pass an id to rpc, but only as an argument for the called method on the other side. It won't change to which peers the RPC is send.

by (10,467 points)

Thanks and sorry for my dumb mistake, had a lot of stress today trying to understand networking.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.