# Elevator and Random Room Generator?

**URL:** <https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180>\
**Category:** Blueprint\
**Tags:** randomize-array, unreal-engine, UE4, Blueprint, question\
**Created:** [October 19, 2019, 10:06pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180 "2019-10-19T22:06:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 19, 2019, 10:06pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/1 "2019-10-19T22:06:42Z")

</div>

Is there a way I could make an elevator go up or down and open up to a bunch of rooms randomly selected?

---

<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:** [October 20, 2019, 8:21am UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/2 "2019-10-20T08:21:47Z")

</div>

For sure you can do this, but the question is a bit vague, can you be more specific…?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 20, 2019, 8:51pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/3 "2019-10-20T20:51:08Z")

</div>

For example, if a player entered an elevator, and it started to go up and eventually the elevator will open up to a room but rooms are randomly generated each time like one room could show a hallway of a hotel on fire or the next room could show the streets of Silent Hill basically random rooms with different things happening and there’s a timer for when the door closes up and goes to the next randomly generated room

---

<div class="post-metadata">

**Author:** ![Kmontoya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kmontoya](https://forums.unrealengine.com/u/Kmontoya)\
**Post date:** [October 20, 2019, 11:33pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/4 "2019-10-20T23:33:20Z")

</div>

Whats up man -  
so for something like this, if I’m understanding correctly, I think you’d want to look into the ‘Level Streaming’ mechanic to start with.

Here are some tutorials to help get you started.

> - **Level Streaming**

- [https://www.youtube.com/channel/UCOVfF7PfLbRdVEm0hONTrNQ/search?query=level](https://www.youtube.com/channel/UCOVfF7PfLbRdVEm0hONTrNQ/search?query=level)
- [https://www.youtube.com/watch?v=XE2x4TZHxHg&t=282s](https://www.youtube.com/watch?v=XE2x4TZHxHg&t=282s)

Im sure you are already good on making the elevator, but just in case.

> - **Elevators**

- [https://www.youtube.com/watch?v=Bdp0n\_3A0cg](https://www.youtube.com/watch?v=Bdp0n_3A0cg)

---

<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:** [October 21, 2019, 6:29am UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/5 "2019-10-21T06:29:31Z")

</div>

Just to save you a world of pain 🙂 If the levels are supposed to be random, you can’t use streaming. Streaming is for pre-defined levels, although they may appear in a random order.

If you want things to be truly random, then you need to make each ‘area’ a BP.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 21, 2019, 4:30pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/6 "2019-10-21T16:30:35Z")

</div>

So should each level have its own blueprint and it’s each own level separate from the others? Or build the rooms separately but all in the same level

---

<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:** [October 22, 2019, 6:34am UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/7 "2019-10-22T06:34:11Z")

</div>

Let’s be clear 🙂

If by ‘level’ you mean a shaboodle of stuff including landscape yada yada etc. Then you have to do it with streaming.

If by ‘level’ you mean a room, or small sequence of rooms, then you can do it in BP.

If you’re doing the second, the room(s) are just BPs which you spawn just before the lift door opens.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 22, 2019, 10:49am UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/8 "2019-10-22T10:49:45Z")

</div>

Ah okay I understand thank you! I appreciate it greatly!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 24, 2019, 4:32pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/9 "2019-10-24T16:32:19Z")

</div>

Question, is there a chance you could screenshot me a picture of how the blueprint set up would be for each room or is that in one of the links?

---

<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:** [October 24, 2019, 4:51pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/10 "2019-10-24T16:51:02Z")

</div>

I think you’re getting me mixed up with the other person 😉

But, the BP for the rooms totally depend on you.

Here’s some official Epic training on the stuff ( maybe a bit OTT to start off with ):

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/d/d5d64f157bb3804d9bd3c73724ae4f96316d6e6f.jpeg "Blueprint Generating Procedural Rooms | Live Training | Unreal Engine") ](https://www.youtube.com/watch?v=mI7eYXMJ5eI)

---

<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:** [October 24, 2019, 5:01pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/11 "2019-10-24T17:01:26Z")

</div>

PS: I just took a quick look at that, it’s really for production level games so don’t take it too seriously.

If you just have a bunch of meshes, you can convert them to a BP, and that will work just fine. You can spawn them when you need.

You only need instancing when you have hundreds or thousands of rooms 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b8558d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b8558d3](https://forums.unrealengine.com/u/anonymous_user_4b8558d3)\
**Post date:** [October 24, 2019, 6:05pm UTC](https://forums.unrealengine.com/t/elevator-and-random-room-generator/457180/12 "2019-10-24T18:05:15Z")

</div>

Thank you!
