0 votes

When develop networking game, we might want to send a rpc to server only, but how?

in Engine by (67 points)

1 Answer

+4 votes

The Server's ID is always 1 so use rpc_id or rpc_unreliable_id with that.

Side note


ID 0 is broadcast to all peers

by (6,258 points)
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 Frequently asked questions and 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 [email protected] with your username.