# Blueprint for multiple doors

**URL:** <https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [May 15, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297 "2024-05-15T14:17:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZETACOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZETACOW](https://forums.unrealengine.com/u/ZETACOW)\
**Post date:** [May 15, 2024, 2:17pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/1 "2024-05-15T14:17:23Z")

</div>

I am trying to make doors and I got the movement and interaction down but if I make more They will move to the original location when simulating. So how can I make it know the difference?

![Screenshot 2024-05-14 200841|690x394]  
(upload://kkFFxk3sbMpptTzopDCPq4QBVGJ.png)

---

<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:** [May 15, 2024, 2:29pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/2 "2024-05-15T14:29:23Z")

</div>

Can you show the code?

---

<div class="post-metadata">

**Author:** ![ZETACOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZETACOW](https://forums.unrealengine.com/u/ZETACOW)\
**Post date:** [May 15, 2024, 5:53pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/3 "2024-05-15T17:53:20Z")

</div>

![Screenshot 2024-05-14 200841](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/8/8e81b1c9dbbd658abcb3a868c5807d9a5e974bd5.png)

---

<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:** [May 15, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/4 "2024-05-15T18:40:00Z")

</div>

You’re over thinking it.

This is all you need, because it’s relative

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/5/25553281ada569314e811c1a257030587d27a5d9.png)

( you don’t that vector math )

---

<div class="post-metadata">

**Author:** ![ZETACOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZETACOW](https://forums.unrealengine.com/u/ZETACOW)\
**Post date:** [May 15, 2024, 7:37pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/5 "2024-05-15T19:37:15Z")

</div>

When I have tried to just use the Relative Location it just flies off into the void never to return and still has the problem of all spawning in the same spot.

---

<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:** [May 15, 2024, 8:04pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/6 "2024-05-15T20:04:56Z")

</div>

Is that second piece of code on tick?

The move component node, does it all for you, no need for tick.

To be clear, you only put the Z difference in, don’t copy the X and Y into the other slots.

---

<div class="post-metadata">

**Author:** ![ZETACOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZETACOW](https://forums.unrealengine.com/u/ZETACOW)\
**Post date:** [May 15, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/7 "2024-05-15T20:40:07Z")

</div>

Here is the rest of the code. When I set the Relative Location to X 0 Y 0 Z -270 It flies away still.

 ![Screenshot 2024-05-15 153750](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/e/93e23cc608b782de1d22102101de2ba59d60e763.png)

---

<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:** [May 16, 2024, 6:23am UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/8 "2024-05-16T06:23:31Z")

</div>

Do you mean like this?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/c/5/7c55cc711ee2f7558bc6b87f43d996a79a56e8cd.png)

![MCT2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/1/fd14c7391e16a8e8fa936d4a556e0e4ccb402c06.gif)

---

<div class="post-metadata">

**Author:** ![ZETACOW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZETACOW](https://forums.unrealengine.com/u/ZETACOW)\
**Post date:** [May 16, 2024, 6:49pm UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/9 "2024-05-16T18:49:03Z")

</div>

Yeah that’s what I am going for but when I place more than 1 they will spawn in the same spot when in The simulation.

---

<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:** [May 17, 2024, 10:58am UTC](https://forums.unrealengine.com/t/blueprint-for-multiple-doors/1857297/10 "2024-05-17T10:58:28Z")

</div>

Have you literally just tried copying my code?

![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/f/41fb627d2d5bb3aa7e7325d7cc96603e6899f6fc.gif)
