# How to know if a door is open

**URL:** <https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine\
**Created:** [August 7, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878 "2016-08-07T16:30:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [August 7, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/1 "2016-08-07T16:30:45Z")

</div>

I have made a child of the behemot gate, and I am trying to open and close automatically using a blueprint.

I can open/close the behemot using Trymultiuse (index 500). The problem is that same number opens and closes, so I need to know if the door is open or closed.

Thank you.

PS: There is a door open state, but it is “bad\_type” so I think it is impossible to use.

---

<div class="post-metadata">

**Author:** ![Mezzow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mezzow](https://forums.unrealengine.com/u/Mezzow)\
**Post date:** [August 7, 2016, 4:38pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/2 "2016-08-07T16:38:32Z")

</div>

I am using a check on the rotation of the door transform to get the door state:

[![](https://i.imgur.com/azSZC6c.png) ](https://i.imgur.com/azSZC6c.png)

---

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [August 7, 2016, 4:39pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/3 "2016-08-07T16:39:53Z")

</div>

> [@Mezzow;577226](#):
>
> I am using a check on the rotation of the door transform to get the door state:
> 
> [https://i.imgur.com/azSZC6c.png](https://i.imgur.com/azSZC6c.png)

Yah but what happens if it is opening/closing?

---

<div class="post-metadata">

**Author:** ![Mezzow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mezzow](https://forums.unrealengine.com/u/Mezzow)\
**Post date:** [August 7, 2016, 4:40pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/4 "2016-08-07T16:40:51Z")

</div>

Then both values will return false = moving state.

---

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [August 7, 2016, 4:53pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/5 "2016-08-07T16:53:22Z")

</div>

> [@Mezzow;577229](#):
>
> Then both values will return false = moving state.

But I need to know if it is opening or closing too.

---

<div class="post-metadata">

**Author:** ![Mezzow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mezzow](https://forums.unrealengine.com/u/Mezzow)\
**Post date:** [August 7, 2016, 5:02pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/6 "2016-08-07T17:02:49Z")

</div>

Just have to exptend this a bit to get the direction. For example get the rotation twice and look if it is getting smaller or greater.

---

<div class="post-metadata">

**Author:** ![Cucharon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Post date:** [August 7, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/7 "2016-08-07T17:29:20Z")

</div>

> [@Mezzow;577237](#):
>
> Just have to exptend this a bit to get the direction. For example get the rotation twice and look if it is getting smaller or greater.

Mm… well I will do that, using a timer.

Thank you for the idea.

---

<div class="post-metadata">

**Author:** ![spezz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spezz](https://forums.unrealengine.com/u/spezz)\
**Post date:** [August 11, 2016, 2:46am UTC](https://forums.unrealengine.com/t/how-to-know-if-a-door-is-open/70878/8 "2016-08-11T02:46:11Z")

</div>

there is a node to check if the door is moving which u can branch off it its what i used on my steampunk gates to add animations looks like this

 ![d8e12ab7e820478eb3ab41c2bf99acc3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/5/55506894af60bfaeb1bd5d3166deabfdb27cc096.png)

u can try that if thats what ur looking for
