To create an elevator. The "elevator.scr" file must be in your maps directory of in a maps directory of a ".pk3" file in your main diretcory.
Now lets get started. First creat the brushes and everything in MOHRadiant, make sure each brush is a "script_object" with all the same "$targetname" give the base brush, the one the player will stand on, give it a key of "$part" with a value of "base". Next create two "trigger_use" burshes, give them the same "$targetname" as the rest of the elevator. Place one trigger at the bottem of your elevator, where the player gets on before riding up, and give it a key of "$part" with a value of "triggerup". Now place the other trigger at the top of your elevator, where the player gets on before riding down, and give it a key of "$part" with a value of "triggerdown". Finally create two "info_waypoint" brushes, give them the same "$targetname" as the other brushes. Place one where you want the elevator to stop at the top, give it a key of "$part" with a value of "top". The other one goes where you want the elevator to stop at the bottom, give it a key of "$part" with a value of "bottom".
You can make your elevators move along a path instead off just bottom to top and vice versa. You can even have your elevator take one path to the top and another to the bottom. Just so that you understand, the top doesn't have to be directly above the bottom and they can be at the same level. Really you can think of them as destination 1 and 2, or start and finish. The elevator simply travels from one to the other and back again.
To have the elevator follow a path, create a bunch of "info_waypoint"s. Then connect them in a string, this is your path. Now connect the "info_waypoint", that has the "$part" key with a value of "bottom" to the start of the path you just created. Then connect the "info_waypoint", that has the "$part" key with a value of "top" to the end of the path.
If you want the elevator to travel one path going one way and an other path on its return, you need to create two bunches of "info_waypoints". Then connect them into two strings, these are your paths. Now connect the "info_waypoint", that has the "$part" key with a value of "bottom" to the start of one of the paths you just created. This will be the path the elevator takes when going "up". Then connect the "info_waypoint", that has the "$part" key with a value of "top" to the start of the other path. This will be the path the elevator takes when going "down".
Here are some optional things you can set by giving your "base" bursh the following key \ value pairs.
movetime \ the time seconds you want the elevator to reach its destination, defualts to 5
waittime \ the time seconds you want the elevator to wait before moving, defualts to 1
Then in your script file, before "level waitTill spawn", execute the prep_elevator thread on your bursh, like this:
$elevator1 exec maps/elevator.scr::prep_elevator
Thats all there is to it! Pretty simple huh?
Surgeon, now where should I put my workmanship?
