0 votes

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

in Engine by (52 points)

1 Answer

+2 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 (4,308 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 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.