subway
Moderator: Moderators
subway
i'm making a map w/a subway... is there a way to have it where you can go in the subway car and be transported to the other end of the map?
turns
You can do it much easier if the subway car does not make any turns. If it doesn't, you can use waypoints--like an elevator moving sidways.
There is a teleport trigger too that will just make the player pop to the new location. So, for example, if you had two subway cars, you could make the player jump from one to the other and make it look like he is still in the first car, but at a new station.
There is a teleport trigger too that will just make the player pop to the new location. So, for example, if you had two subway cars, you could make the player jump from one to the other and make it look like he is still in the first car, but at a new station.
Last edited by tltrude on Wed Jul 16, 2003 4:54 pm, edited 1 time in total.
Script_object
To use waypoints, you have to make the subway car a script_object. Then place a waypoint in the center of it and one down the track at the destination centerpoint.
Your script would have lines like this:
subway:
$subway_car speed 150 // units per second
$subway_trigger waittill trigger
wait 2
$subway_car moveto $way_2
$subway_car waitmove
wait 10
$subway_car moveto $way_1
$subway_car waitmove
goto subway
end
The above thread is very basic and has no sound or doors.
Your script would have lines like this:
subway:
$subway_car speed 150 // units per second
$subway_trigger waittill trigger
wait 2
$subway_car moveto $way_2
$subway_car waitmove
wait 10
$subway_car moveto $way_1
$subway_car waitmove
goto subway
end
The above thread is very basic and has no sound or doors.
Script_object
Highlight all the brushes in the car (except the doors) and hit key N. Then find script_object on the list and double click on it. Next add Key: targetname and Value: subway_car.
subway_prep:
$subway_car speed 150 // units per second
$subdoor_left bind $subway_car
$subdoor_right bind $subway_car
$subway_trigger bind $subway_car
$subdoor_left open
$subdoor_right open
goto subway
subway:
$subway_trigger waittill trigger // trigger_use inside the car
wait 1
$subdoor_left close
$subdoor_right close
$subway_car loopsound lighthouse_run
$subway_car moveto $way_2
$subway_car waitmove
$subway_car loopsound lighthouse_run wait
$subdoor_left open
$subdoor_right open
wait 10
$subdoor_left close
$subdoor_right close
$subway_car loopsound lighthouse_run
$subway_car moveto $way_1
$subway_car waitmove
$subway_car loopsound lighthouse_run wait
$subdoor_left open
$subdoor_right open
goto subway
end
IF this is your first map, you are jumping into the deep end before you learn how to swim!
subway_prep:
$subway_car speed 150 // units per second
$subdoor_left bind $subway_car
$subdoor_right bind $subway_car
$subway_trigger bind $subway_car
$subdoor_left open
$subdoor_right open
goto subway
subway:
$subway_trigger waittill trigger // trigger_use inside the car
wait 1
$subdoor_left close
$subdoor_right close
$subway_car loopsound lighthouse_run
$subway_car moveto $way_2
$subway_car waitmove
$subway_car loopsound lighthouse_run wait
$subdoor_left open
$subdoor_right open
wait 10
$subdoor_left close
$subdoor_right close
$subway_car loopsound lighthouse_run
$subway_car moveto $way_1
$subway_car waitmove
$subway_car loopsound lighthouse_run wait
$subdoor_left open
$subdoor_right open
goto subway
end
IF this is your first map, you are jumping into the deep end before you learn how to swim!
Last edited by tltrude on Wed Jul 16, 2003 5:41 pm, edited 1 time in total.
start the thread
To start the thread you put:
Main:
level waittill prespawn
thread subway_prep
level waittill spawn
end
The doors should be closed in the map. They will be opened in the preperation thread (I updated it).
Main:
level waittill prespawn
thread subway_prep
level waittill spawn
end
The doors should be closed in the map. They will be opened in the preperation thread (I updated it).
Last edited by tltrude on Wed Jul 16, 2003 5:50 pm, edited 2 times in total.
func_door
What? You don't know how to make function doors?
Put origin brushes on the sides and set the angle each will side to. Also set them to "targeted".
Put origin brushes on the sides and set the angle each will side to. Also set them to "targeted".
