How do I make a universal switch?

My situation is that I’ve got multiple control panels with a lot of switches on them which all will do different things.

Is it possible to make one blueprint for a switch which I can set what function it has? So for example I have three switches which are the same blueprint but each switch has a different use e.g. one opens a door and another turns the lights off. Basically a multipurpose blueprint.

To put it into perspective here’s what the panels look like:

You use interfaces to do this. You first make an interface with the events / functions you want (they can be empty too and used to trigger some functionality in the receiving actor).

For any actor receiving the interface call from the switch, they need to implement the interface.

You will need a reference of the receiving actor somehow in the switch to call the interface on the right actor. I’d suggest an instance editable actor reference in the switch and then set the references in the switches once they’ve been placed in the level.

Could use Event Dispater with a Name/String as a Tag so you know what Item to turn on