How can I open/close a door by clicking on it, instead of a box trigger?

Hello! How can I open or close a door by clicking on it, instead of using a box trigger? I want to press a button and open or close the door. Thx!

Another method would be to use a line trace from the character’s view (if first person) or the character’s face (if third person). You can set the keybinding to run a line trace everytime it’s pressed. If the line trace hits the door, which you can determine by casting to the door’s blueprint class, then it calls an event on the door to cause it to open.

You can find more about line traces here:

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html

thx, i ll check it out!

Hi man ,
You can just search for all actor door , using the node , get all actor of class “MyDoor”,
That will give you an array. Pin out the array in a foreachloop : and check IF , your location - the door location is < of 100.
IF yes, you can pin out from the reference a “Call Event Toggle door”.

This way you can also open door on your back.

If you want to be sure that the door will be opened only if is in front of you.
Just take you location ad you forward vector * some distance, this way you get the position in front of your char.
And you use that location - Door location < of 100…