Announcement

Collapse
No announcement yet.

How to have multiple trigger boxes call the same code?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to have multiple trigger boxes call the same code?

    I'd like to have several trigger boxes point to the same blueprint routine but every new trigger box creates a new Begin Overlap / End Overlap and I have to have each one point to the function. Is there a way to make an array of objects and have a single Begin Overlap event?

    Unpopular Minion on the Play Store (Released: January 31, 2016)

    #2
    There are a few ways.

    The easiest one would be creating an actor of this trigger box which executes this function. Technically every actor would have it's own then but they would all do the same and you would only have to add one to make it work.

    You can also use an "Event Dispatcher". Basically it's a custom event which if called broadcasts the signal to all actors of a class which listen to it and there you simply have a usual custom event (after you bind it).

    Cheers

    Comment


      #3
      I discovered you could add blueprint actors which would ultimately do what I want. Would I be correct in assuming that's what you are referring to?

      Unpopular Minion on the Play Store (Released: January 31, 2016)

      Comment


        #4
        Yes exactly. That's the first part

        Glad it works.

        Cheers

        Comment

        Working...
        X