Advertisement
Doodles_Inc

SoE cableway loop attempt

Sep 9th, 2017
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.91 KB | None | 0 0
  1. function move_vehicle()
  2. {
  3.     level flag::wait_till( "initial_blackscreen_passed" );
  4.     level.vh_train = GetEnt( "veh_cableway", "targetname" );
  5.     level.vh_train.health = 99999;
  6.     level.vh_train SetMovingPlatformEnabled(1);
  7.     level.vh_train SetVehMaxSpeed( 25 );
  8.     n_path_start_2 = GetVehicleNode( "cableway_2", "targetname" ); //sets the second path
  9.     n_path_start = GetVehicleNode( "cableway", "targetname" ); //sets the first path
  10.     level.vh_train AttachPath( n_path_start );
  11.     level.vh_train StartPath();
  12.     level.vh_train SetSpeedImmediate( 4 );
  13.     i = 0;
  14.     while(240) // while loop, repeats every 240 seconds, I think...
  15.     {
  16.         level.vh_train AttachPath( n_path_start_2 );
  17.         level.vh_train StartPath();
  18.         level.vh_train SetSpeedImmediate( 4 );
  19.         wait(120);
  20.         level.vh_train AttachPath( n_path_start );
  21.         level.vh_train StartPath();
  22.         level.vh_train SetSpeedImmediate( 4 );
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement