+1 vote

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?

asked Jan 3, 2017 in Engine by mateusak (1,076 points)
edited Jan 4, 2017 by mateusak

1 Answer

+1 vote

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:
    rpc("do_stuff")

sync func do_stuff():
    # do stuff
answered Feb 14, 2018 by Tubeliar (16 points)
edited Feb 15, 2018 by Tubeliar
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.