Hi,
I’m a beginner in UE4 and I just realised a complete and fully customizable lift.
Instead of posting my BPs (too heavy and too big) and “making the job for you”, I think it will be more beneficial for you to try by yourself (following some guidelines I give you), and ask then if you’re stuck somewhere.
First of all I referenced this tutorial as a base for my work.: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums .
What I needed in my case :
- a lift cabin that can move up and down (on Z axis)
- a sliding doors (2 doors sliding one to left one to right, n my case)
- some buttons that my player can select and activate to choose the level destination.
Based on that, her are the steps I followed :
First step : building the sliding doors (see tutorial and adapt it to my needs - change the sliding from vertical to horizontal etc), I created a Class BluePrint named “SlidingDoors”
2nd Step : Create a new class BluePrint (mine is called “Elevator”) - Inside it, first I build the basic displacement up and down with only one level (move from 0 to 1 and reverse).
3rd step : Add complexitiy to Elevator, with multiple levels (in the testing phase, I just hard coded the destination level to ensure I go where I want)
4th step : Add the ability for player to select among five buttons (I posted a simplified BP just of this part here Differentiate a particular element of the bluepint via raycast - Programming & Scripting - Epic Developer Community Forums to activate the lift.
Once this part works as I wanted, I added the doors by adding my SlidingDoors BP as “Child Actor” of my “Elevator” BP.
5th step : Adjust my Elevator BP, to play the open and close doors automatically when elevator reach the destination. Add a button specifically to open doors. Disable player input when the lift moves, etc…
6th step : more aesthetics and design. Add ability for designers to change any mesh and material for the different parts (doors, doorsframe, cabin, buttons, light etc…)
Hope this will help you to achieve what you want,
Cheers