Why can't a custom event's string be bound to a Blackboard property?

Forums 💬 FlowCanvas ⚙️ Support Why can't a custom event's string be bound to a Blackboard property?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22378
    xelnath
    Participant

      I would like to create a generic “SpawnWave” module… and be able to specify what string will be used to fire off the spawning of that module!

      However, it appears FlowScript will only accept a hard-coded string for the event, rather than be able to use one defined for the graph via Variable.

      Has no one needed this or is it a bad practice?

      #22383
      Gavalakis
      Keymaster

        Hello,

        The event name could be made to be able to have a variable link, but unfortunately right now it’s not 🙂
        An alternative way of doing what you need as far as I understand, would be to use the SwitchString node, something like this:
        [attachment file=”SwitchString.png”]

        Let me know if that works for you.
        Thanks.

        #22382
        chocolacode
        Participant

          Hey Gavalakis,

          Is this function now available?

          Thanks!

          #22381
          chocolacode
          Participant

            Hi Gavalakis,

            do you have any comment on this?

            Thanks!! 🙂

            #22380
            Gavalakis
            Keymaster

              Hey,
              Sorry for the late reply.
              Are you referring to having the ability to set the string from a Blackboard variable?
              If so, that is not yet added, because changing the serialized variable now (from string to BBParameter) will break previous projects.
              Thus I will need to create a provide a ‘version 2’ of those nodes (CustomEvent) and deprecate the old ones, which is something to do in the roadmap.
              Let me know if that is indeed what you asked 🙂
              Thanks!

              #22379
              chocolacode
              Participant

                Hey,

                No worries! 🙂

                That’s exactly what I am
                Looking for

                Thanks

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