unlock a door after targets are destroyed

I want to make a room where there are multiple targets that you can detroy by shooting it.
After you destroyed all targets i want a door to open or be unlocked.
can someone please help me? i’ve searched the internet for a long time and tomorow is my deadline.
are there any good tutorials for this?

Hi there.

You could add a Boolean variable in your target “IsTargetDestroyed”, provided the target is a blueprint. Set it to true when the target is destroyed. Then in your Level blueprint get all those booleans from your targets and with an AND bool you can then define what happens if all targets are destroyed.

For instance, this is how I check if all statues are in place for a laser to activate, same principle.

or you could use arrays.