UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: trebeltom1 on March 18, 2013, 08:14:51 pm

Title: respawn point
Post by: trebeltom1 on March 18, 2013, 08:14:51 pm
so I have an area where players start the map, but then they leave that area and will not return for sometime, how can I add alternative respawn points to my map?

Thanks
Title: Re: respawn point
Post by: YaPh1l on March 18, 2013, 08:41:43 pm
For DR: http://www.zombiemodding.com/index.php?topic=9674.0

- Phil.
Title: Re: respawn point
Post by: trebeltom1 on March 19, 2013, 07:40:37 pm
thanks very much solved that one. I am trying to make something move at the end of every round
at the moment the function looks like this:

elevator()
{
platform1 = getent ("startplatform","targetname");
platform = getent ("startrail","targetname");
level waittill( "round_over" );
wait(1);
platform movez (48,3,0.5,0.5);
wait(3);
platform1 movez (-320,5,0.5,0.5);
wait(10);
platform1 movez (320,5,0.5,0.5);
wait(5);
platform movez (-48,3,0.5,0.5);
level endon( "between_round_over" );
}

what should i do so it moves at the end of every round, not just the first one?

I know i am a scripting noob, sorry
Title: Re: respawn point
Post by: YaPh1l on March 19, 2013, 08:01:19 pm
Something like this:
Code Snippet
Plaintext
elevator()
{
 platform1 = getent ("startplatform","targetname");
 platform = getent ("startrail","targetname");
 while(true)
 {
  level waittill( "between_round_over" );
  wait(1);
  platform movez (48,3,0.5,0.5);
  wait(3);
  platform1 movez (-320,5,0.5,0.5);
  wait(10);
  platform1 movez (320,5,0.5,0.5);
  wait(5);
  platform movez (-48,3,0.5,0.5);
 }
}

- Phil.
Title: Re: respawn point
Post by: trebeltom1 on March 19, 2013, 08:12:01 pm
Code Snippet
Plaintext
elevator()
{
 platform1 = getent ("startplatform","targetname");
 platform = getent ("startrail","targetname");
 while(true)
 {
  level waittill( "round_over" );
  wait(1);
  platform movez (48,3,0.5,0.5);
  wait(3);
  platform1 movez (-320,5,0.5,0.5);
  wait(10);
  platform1 movez (320,5,0.5,0.5);
  wait(5);
  platform movez (-48,3,0.5,0.5);
 }
}


yeah this works, thanks a lot YaPh1l