Reply To: Firing a missile

Forums 💬 FlowCanvas ⚙️ Support Firing a missile Reply To: Firing a missile

#12545
Gavalakis
Keymaster

    Hello there and welcome 🙂

    The “Start” event node you are using, is only called once when the graph is enabled (on its start). To achieve what you want, you need an event that calling its output continuously (per-frame). As such that event would be the “On Update” event node. If you replace your “Start” event with the “On Update” event, your flowscript should work as expected.

    On the other hand, to achieve what you want, it might be easier to create a Custom Event instead, like so:
    [attachment file=”CustomNamedEvent.png”]

    You can then fire that event from your code like so:

    This way you avoid using variables and the flowscript custom events better represent named functions which you can fire from your code.

    Please let me know if any of the above works for you 🙂
    Thanks!