Ok,
Let's start from scratch... the lift issue is something that happens to a lot of users, so let's get this sorted once for all
Please find attached a working scene with a proper lift prefab, doing quit a lot, and surely answering your needs... at least I hope, and if not, it will give a you a good head start to modify or build your own.
----------------------- WARNING ----------------------
this package uses global events, and them global events have been exported properly, so when you import it, make sure you import globals ( in the tools menu of playmaker) before working with it.
---------------------------------------------------------
Features:
-- A set of global events enables other fsm to control a particular lift, All them events are organised and starts with "LIFT /" so it's easy to find them
-- the lift set up is relatively complex, but allows for maximum flexibility, you have the up and down targets where the lift should stop, and you can swap the platform mesh without loosing the functionality
-- the lift can be toggled at anytime, so as it goes up you can ask it to go down ( thank you iTween! )
-- the lift can be locked, and unlocked at will, this is important in some games where you want to spice things up
-- the lift platform as a small trigger in its center that you can use to auto trigger the up and down movement of the lift, you can of course control if from external sources by just calling the proper "LIFT /" event on that lift
-- this platform trigger can also trigger a toggle when it exit, making the lift completly automatic: the user arrives, is taken up or down, and when he goes away, the lift comes back to where it was. I gave you the abiliy to define this without modifiy the fsms ( it's in the Fsm inspector).
The scene I have included, shows two lifts, and to actually use them both with your player, you will have to first go to the one that is on the floor ( you'll see the second one going up as the scene starts), it will take you up. you'll pass a trigger that will lock that lift, so you will have to use the other one to get down ( without jumping off the second floor of course...) and then you can call the first lift back, by going towards the trigger on the floor .
So with this prefab, you can build a lot of different lifts, some that goes higher then other, you can adjust the speed, you can change its appearance, etc etc. You can even move the up and down targets to have one lift going to different floors! how about that
If you have any questions, don't hesitate to ask,
Bye,
Jean