Multiple player options, only one decision

In the picture below, I have a set of doors… The player can choose between any one of these doors to open. However, I want to set it so that regardless of which door the player chooses, it would render the other doors unavailable once the player opens one of them. The door is supposed to open and stay open. It will not close after the player walks through it or anything like that.

As it stands currently, the player can open all of the doors, one at a time.
This action/query would only happen once in at the beginning of the game.

  • Would I set up an array that a function would call to?
  • Would I put any of this query code in the construction script?
  • Can I utilize the same door blueprint for every door (BP_Door1, BP_Door1, BP_Door1, BP_Door1)
  • Will I have to duplicate the blueprint and change its name (BP_Door1, BP_Door2, BP_Door3, BP_Door4)

I also attached a pic of the working blueprint for the door. in case you would like to see a blueprint reference.

Thank you so much for your input!

The doors can be identical, but using a ‘door manager’ bp is a good way to do it.

When a door is opened, it tells the door manager, which sends a signal to all doors to stop responding.

You’d use and event dispatcher for that.

You can do it without the manager. That way, the opened door would send the disable message to all doors ( using a getallactorsofclass ), also catching itself in the process.