# Door Probleme. My door Flip 180 degres when activated while open.

**URL:** <https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932>\
**Category:** Blueprint\
**Tags:** unreal-engine, door\
**Created:** [February 26, 2024, 1:44am UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932 "2024-02-26T01:44:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashecko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashecko/32/903783_2.png) [@Flashecko](https://forums.unrealengine.com/u/Flashecko)\
**Post date:** [February 26, 2024, 1:44am UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/1 "2024-02-26T01:44:40Z")

</div>

Hi, Im new to This and i Just figure how to make a door open by pressing E , Then I was thinking it should be nice if this one closed by themself. I also manage to find a way to open the door Opposite way of my player . But Now when the door is open and im standing in the (HitBox) of the door , I cant close it myself . the door make a 180 degres and Im very clueless what i should do to make it work.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 26, 2024, 12:00pm UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/2 "2024-02-26T12:00:17Z")

</div>

Can you show the code?

---

<div class="post-metadata">

**Author:** ![Flashecko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashecko/32/903783_2.png) [@Flashecko](https://forums.unrealengine.com/u/Flashecko)\
**Post date:** [February 28, 2024, 4:05am UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/3 "2024-02-28T04:05:27Z")

</div>

(Sorry, new users can not upload attachments). Thats the message I got when I try to put it, sadly . I dont really know how its work here maybe we can go on discord or something like that . Or if you have any tip on how to put image here ?!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 28, 2024, 9:12am UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/4 "2024-02-28T09:12:54Z")

</div>

How about?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/c/d0c31534a77fc90ffa8544f8c0a523271139deb6.png)

![door](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/7/ea734024d74af33c368c06fa9db65618f08d7eef.gif)

---

<div class="post-metadata">

**Author:** ![Flashecko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashecko/32/903783_2.png) [@Flashecko](https://forums.unrealengine.com/u/Flashecko)\
**Post date:** [February 28, 2024, 2:10pm UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/5 "2024-02-28T14:10:35Z")

</div>

I’m using this

(CustomEvent)—\> play(TimeLine)Update—\> (SetRelativeRotation)  
(CustomEvent)Playerlocation ----------\> to(GetUnitDirection(Vector)  
(GetActorLocation)—\> From(GetUnitDirection(Vector)—\>(Dot)…  
(GetActorForwardVector)ReturnValue—\>(Dot)…

(Dot) ------\> (0\>=)—\> (SelectFloat), A-90, B90)ReturnValue—\>(Lerp)B

(EventActorEndOverlap)—\> Reverse(TimeLine)1—\> Alpha(Lerp)ReturnValue–  
----\> NewrotationZYAw(SetRelativeRotation)  
(DoorRef)------\>Target(SetRelativeRotation)

I hope you will understand, I know its not like a picture  
From what i see the probleme is cause my (selectFloat) make it flip 180 when the door is Activated while the door still open .

(If i put the SelectFloat) at A-180, B180 its work but i find it a lil bit wierd to make the door open that much XD

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 28, 2024, 2:58pm UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/6 "2024-02-28T14:58:38Z")

</div>

It sounds like you’re overthinking it a bit. Why would you need the player location or a dot product to control a door?

---

<div class="post-metadata">

**Author:** ![Flashecko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashecko/32/903783_2.png) [@Flashecko](https://forums.unrealengine.com/u/Flashecko)\
**Post date:** [February 28, 2024, 3:03pm UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/7 "2024-02-28T15:03:30Z")

</div>

Its the only way I was able to make the door not open in my face .

I Want the door to open alway opposite way of my player . I dont use the Hitbox of the door to open it but the CameraBoom

But yeah you probably right , I make it a lil bit to complicated for a door 😄

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 28, 2024, 3:43pm UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/8 "2024-02-28T15:43:06Z")

</div>

Gotcha…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/c/46c89bc686d21a940bd4ab6489c7fa8fbbee2bba.png)

![door2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/5/ea504c3b8c114edfd1630755a6af1d1ef58a47e0.gif)

---

<div class="post-metadata">

**Author:** ![Flashecko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flashecko/32/903783_2.png) [@Flashecko](https://forums.unrealengine.com/u/Flashecko)\
**Post date:** [February 29, 2024, 12:37am UTC](https://forums.unrealengine.com/t/door-probleme-my-door-flip-180-degres-when-activated-while-open/1712932/9 "2024-02-29T00:37:20Z")

</div>

Thanks for you time 🙂
