Doors open after shooting the target.

NexŮs
Sat, 08 Jul 2023 19:10:01 +0000
Blueprint

Hello,
I’m currently working at my very 1st UE5 project. I used the First Person template, then created my whole “level”, but now I have a problem with doors. When creating them, I was basing on this video: How To Create A Door (Blueprint) - Unreal Engine 5 Tutorial - YouTube

Because I didn’t want to close the doors, I didn’t make it exactly how the video presents, but even though, they still work. My blueprint for them looks like that:

I placed more than only 1 on my level, so I also created a variable “ID” for them and I set different ID for all doors at my level. Now there’s where my problem begins… I don’t want them to open when player is close, but only when the target that is in other place (not on the door) was shot, or when multiple targets were shot at least once.

After some research I tried to make it like it was described here: Shooting a button to open a door?. I created “Custom Event” and renamed it “OpenDoor”, but unfortunately, I don’t understand the next step, “then in your level create a box trigger and also drag in the door bp”.
I opened my Door Blueprint, but how am I supposed to drag the box trigger there? I just placed it on my level by using option “Quickly add to this project”, but I can’t just drag it to Door Blueprint Event graph. It’s just impossible (or i’m doing something wrong?). I also can’t

Right now my Door Blueprint and Level blueprint are looking like that:

Doors

Level

Can anyone help me with this? I would really appreciate that.

10 posts - 3 participants