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?
Announcement
Collapse
No announcement yet.
How to have multiple trigger boxes call the same code?
Collapse
X
-
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