Posted May 13, 2025 by IanCook
In class we learned to craft platforms that move on a timer and were assigned to make a motion activated elevator platform.
The screenshotted code, in essence, sets up the collision boxes for the elevator to move when the player stands on top of it, makes checks to ensure that the thing won't move repeatedly or in the wrong direction when triggered (including a timer for when it can activate again to prevent the player triggering the thing to go up and down as long as they're standing on it) and then creates the movement through a timeline providing data to a lerp transform teaming up with a "set location and rotation."