Firing a missile

FlowCanvas Forums Support Firing a missile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2643

    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:

    currentSpellCard.GetComponent<Blackboard>().SetValue(“StartMe”, true);

    Can someone point me in the right direction?



    You must be logged in to view attached files.

    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:

    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 🙂

    Join us on Discord:

    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.