Hello IbyGTR,
I made quick example that will get you pointed in the correct direction. I hope that this information helps.
Example:
In this picture I have created a new actor blueprint named switch and I have added two boolean variables to it. As you can see I have exposed them on spawn. This will allow you to add the switches to the level and choose which ones you would like to be needed.
Here is an example of setting the “Needed” variable for one of the switches. I did this by selecting one of the switch actors that I placed in the level.
This is a screen shot of the Door blueprint. In this blueprint I have used the get all actors of class node to find all of the switch actors in the level and I have checked to see if they are needed. If they are needed I set the “needed count” variable up by one so that I will have an accurate count of the number of needed switches. From there I check to see if the actor’s “on off?” variable is true and if it is I set the “Current Count” variable up by one. This means that if the “Needed count” ever equals the “Current Count” that all of the needed switches have been turned on.
Make it a great day