Can RPC call remote function from another script?

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

I have a node called Network. It is a child of other nodes. I create the network in the Network node. Can I create remote functions in other scripts and call the m, or can I only call remote functions in the Network script?

:bust_in_silhouette: Reply From: blurrred

I just tried this out and it seems to work.

Network.rpc('function_name', arg, arg, arg)

I did it with rpc_id, but I’m assuming rpc works just the same.