Reply To: Calling functions on other flowcanvas scripts

FlowCanvas Forums Support Calling functions on other flowcanvas scripts Reply To: Calling functions on other flowcanvas scripts

#1241
Gavalakis
Keymaster

Hey,
Sorry for the late reply, but I got ill in bed.
Now I see what you mean. If you want to call an event in flowscript B from flowscript A, then what you can use is “Send Event” node in flowscript A, along with the “Events/Custom Event” node in flowscript B.
Here is an image of what I mean:
events

The only change you will need to make is for the “Send Event” node on the top (which resembles flowscript A), to assign or connect the “Target” property if that node, to the other flowscript object instead of leaving it to the default “Self”.

Then that other flowscript (bottom), will be using a “Custom Event” node to catch the event send to it from the first flowscript (top)

Please let me know if that helps, or if you need further explanation of this.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. events.png