Bug with using Global Events

Forums 💬 FlowCanvas ⚙️ Support Bug with using Global Events

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22634
    chocolacode
    Participant

      Hi there Gavalakis,

      I am having problems when using Global events.

      I have a FSM and a FlowScript attached to a GameObject. When I send a Global Event<T> from the FSM, the Flowscript receives it twice or more times.

      In my actual project is actually calling the global event 3 times and then my flow script internally also loops internally 3 or 4 times more.

      I reproduced the problem in the attached package. I took a copy of the Soldier click and move scene and modified.

      thanks in advance for your help!!

      Mac w/El Capitan
      Unity 5.3.5 f1
      Node canvas 2.5.6
      Flow canvas 1.2.5b

      #22640
      Gavalakis
      Keymaster

        Hey,

        Can you please re-upload the package including the FSM and FlowScript graphs within? The package now only includes the scene from the examples 🙂
        Or alternatively, please let me know how to reproduce this.
        Thanks!

        #22639
        chocolacode
        Participant

          Hi,

          here is the package again with the assets

          I have sent you the screenshots in case you need to reproduce it manually. Need to add a FSM state that send a global event after soldier has finished moving. Then the flow script will catch the event.

          thanks in advance!

          #22638
          chocolacode
          Participant

            here you have the screenshots…

            #22637
            Gavalakis
            Keymaster

              Hello,

              Thanks.
              There is indeed a small bug here that I can send you the fix for, but if you want to send an event to be received from graphs on the same gameobject, you don’t really need to send a global event. Sending a normal event, will be received from all graphs of the same gameobject, since events are agent/gameobject-based, rather than graph-based 🙂

              Let me know if the above works for you or if you still want to use global event, let me know if you want to email you the fix now.
              Thanks!

              #22636
              chocolacode
              Participant

                Hello,

                Yes please send me the fix. I will
                Use local and global events in my
                Project

                Thanks!

                #22635
                Gavalakis
                Keymaster

                  Hey,
                  I’ve emailed you the fix.
                  Cheers!

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