Hi All, i’m farily new to Flow so please excuse the noob quesiton…
I have a trading card game which has spell cards in it, I am trying to instantiate a fireball when a spell card is played. I created this flow script and am trying to trigger it from a script by setting a bool value to true when I want to trigger it.
The problem is it never runs… when I play the card it is instantiated as a clone but does’nt seem to fire and i’m not sure what I am doing wrong?
I am setting the bool variable at the right pleace with this:
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:
You can then fire that event from your code like so: