Trying to make a Delegate system using Arrays and event dispatchers

Hello Dev community! I am trying to make to lanterns. when you get close to one of the lanterns they’ll light up but the other ones will turn off when another one is lighten or atleast that was the idea but something in the blueprints aren’t working I’d really appreciate help with getting it to work


You’ve got it a little jumbled :slight_smile:

The idea of dispatchers is that all the lanterns would bind to one central dispatcher. When that dispatcher calls the event, all the lanterns respond.

You have the lantern calling the event on itself, so it’s not in line with the model. Also, they haven’t bound to themselves.

I’m assuming you want to use the dispatcher to turn them all off?

Then you can have a central blueprint like this ( called Dispatcher )

The lamp code is

lamps

1 Like

1 Like

We need an engine upgrade. Just look at the state of that lamp…

1 Like

hello im having issue’s with the code ill make another post later tho because i need to sleep for now but later ill make a more detailed reply on whats happening

1 Like

This is what i was able to do when i promote to variable its creating 2 inputs and idk why and i cant bind the event i dont really know what I’m doing exactly…