nomad of the pacific on 12/4/2005 at 02:03
Simple Elevators
1. Create an Elevator, two WaypointMarkers (under Marker:AIPathPoint:PatrolPoint in the Actor Class Browser) and four Button Switches (under WorldObject:Environmental:Switch in the Actor Class Browser). (I used TriangleButton Switches and turned them so one is pointing up and one is pointing down at each of my two end points.)
2. Position the elevator where you want it to start. Position two of the switches near it. One switch will be used to 'send' and the other to 'call' the elevator. Place one of the WaypointMarkers under the elevator. No need to be precise. You'll have to position it later when you can see how the elevator reacts to it. Position the other two switches and the other WaypointMarker where you want the elevator to stop.
3. Create TriggerScript links from all of the Button Switches to the Elevator.
4. Create ElevatorFloorMarker links from the 'send' Button Switch at the 'start' position and the 'call' Button Switch at the 'stop' position to the WaypointMarker at the 'stop' position. Create ElevatorFloorMarker links from the 'call' Button Switch at the 'start' position and the 'send' Button Switch at the 'stop' position to the WaypointMarker at the 'start' position.
5. Add Trigger Scripts ButtonPush and ElevatorButtonActivate to all four Button Switches. They should already have a GenericFrob Trigger Script on them.
You should now have a working elevator. You will have to enter the game and make sure the elevator stops where you want it to at each end. If it doesn't (and it probably won't), you'll have to reposition your WaypointMarkers until it does. If the elevator changes direction before getting to its stopping point, make sure there is nothing physically blocking it. You will probably need a hole for it to sit in at the bottom of the elevator shaft. Hint: I made mine deep enough to prevent dead bodies from fouling my elevator! :cheeky: