Does RPC work in signals?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mateusak
:warning: Old Version Published before Godot 3 was released.

If you use this, will it work?:

node.connect("body_enter", self, "test")

sync func test(body):
   #do stuff

I mean, will it be called in the network?

:bust_in_silhouette: Reply From: Tubeliar

Just tried it in Godot 3.0. Doesn’t work. I guess you’ll have to do this:

node.connect("signal", self, "send_do_stuff")

func send_do_stuff:

sync func do_stuff():
    # do stuff