0 votes

I'm trying to call rpc() to change the name of the same player in a different client.

I'm new to this so sorry If my question doesn't make sence...
So basically I have this network system that works quite well to call rpc() , but the rpc() call only works in func physicsprocess(_delta): (for things like movement) and it cannot be called in func _ready(): , why? And is there any other way to call it once when the game starts?

Godot version 3.4.4-stable
in Engine by (20 points)

1 Answer

0 votes
Best answer

RPC works anywhere as it’s in a function, when a node call rpc it will try to find a node with the same name and path. Make shore that before you rpc the actual name of the node is the same

by (458 points)
selected by

I see, thank you so much!

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.