+1 vote

I created a class named Player to store the data i want to use (name, hp, ...) and i want to sendo to the other peers via rpc, but when i call the methods, like get_name(), it gives an error telling that Object type doesn't have that method. Can i send objects via rpc? How?

in Engine by (13 points)

1 Answer

0 votes

For all i know it's not possible to pass Nodes via RPC.

Check my answer in this thread:
https://godotengine.org/qa/28113/networking-master-creates-node-instances-share-through-rpc
Hope it can help You.

by (2,174 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.