Send object from custom class to other peers by rpc

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Paracrazy

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?

:bust_in_silhouette: Reply From: hilfazer

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

Check my answer in this thread:
Hope it can help You.