Unreal Engine 4 Beginner’s Tutorial - #6: Elevators! (Dynamic References & Arrays)

In this video we’re going to make an elevator which moves the player up and down. In the process, we’ll learn what dynamic references are, what arrays are, and how to use these two things to create a switch which turns on a random elevator in your world-- kinda roguelike-y style :) FOR HOMEWORK: here’s an extra simple exercise you can try if you want! Give your elevator a public variable called ElevatorID that is of type integer. Instead of having your switch turn on a random elevator, give it a unique SwitchID variable of its own; then have it loop through all the elevators and check their ElevatorID property until it finds the elevator it “belongs“ with. In this way, you can dynamically pair elevators with switches at runtime WITHOUT having to assign them all in the editor! MORE LEARNING To learn more about arrays, I like this video: To learn more about loops, I like this video:
Back to Top