Create event to open doors from level blueprint

Hi, I’m really new to Unreal Engine, but I already have knowledge of other programming languages.

I tell you the following, I am looking for how to make a code from the bluprint level that allows me to place something like what we know in javascript as a “listening event” for the doors.

I am an Architect and as an architect we usually do many, many projects at the same time, but we cannot spend time coding each door separately, so my need is to put all the doors in a tag or a matrix, and go through that nuance to place the same event heard on each of the doors.

The event would be something like when loading the level, go through the entire array of doors and add an event that when the character is less than 100 cm away from the door, it opens, rotating relatively on its Z axis. .

As a programmer I suppose this should be possible to do, but nowhere can I find a way to do it.

The idea is not to use collisions (since you would have to add new objects), not to use blueprint on the actors (since the idea is not to edit door by door since they usually have different geometries). The idea is to do it from the blueprint of the level so that it can be used for each of the projects that I develop in the future.

All the best.

If i understand correctly, you have a premade project and have already a lot of door imported on the level map as static mesh ?

if so here a quick solution

Select all your doors in the Outliner and set thier tag + Movable:

In the level blueprint:


(otherwise you can just create a BP_Door and include Box COllision with a OnBeginOverlapComponent, and just set it static mesh but you will need to re add all the door from your content browser to your level map)