Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function move_vehicle()
- {
- level flag::wait_till( "initial_blackscreen_passed" );
- level.vh_train = GetEnt( "veh_cableway", "targetname" );
- level.vh_train.health = 99999;
- level.vh_train SetMovingPlatformEnabled(1);
- level.vh_train SetVehMaxSpeed( 25 );
- n_path_start_2 = GetVehicleNode( "cableway_2", "targetname" ); //sets the second path
- n_path_start = GetVehicleNode( "cableway", "targetname" ); //sets the first path
- level.vh_train AttachPath( n_path_start );
- level.vh_train StartPath();
- level.vh_train SetSpeedImmediate( 4 );
- i = 0;
- while(240) // while loop, repeats every 240 seconds, I think...
- {
- level.vh_train AttachPath( n_path_start_2 );
- level.vh_train StartPath();
- level.vh_train SetSpeedImmediate( 4 );
- wait(120);
- level.vh_train AttachPath( n_path_start );
- level.vh_train StartPath();
- level.vh_train SetSpeedImmediate( 4 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement