Will this work for a moving platform?

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Pun1sheR
CJ Wannabe
CJ Wannabe
Posts: 39
Joined: August 27th, 2013, 7:29 pm

Will this work for a moving platform?

Post by Pun1sheR » January 14th, 2014, 12:21 am

trap05()
{
trap = getEnt ("trap05", "targetname");


while(1)
{
trap moveX ( 768, 1 );
trap waittill ("moveedone");
trap moveX ( -768, 1):
}
}

Pedsdude
Site Admin
Site Admin
Posts: 15908
Joined: October 15th, 2004, 7:18 pm
Location: UK

Re: Will this work for a moving platform?

Post by Pedsdude » January 14th, 2014, 1:19 pm

Have you tried it?
Image
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Will this work for a moving platform?

Post by Drofder2004 » January 14th, 2014, 5:13 pm

Code: Select all

trap05()
{
   trap = getEnt ("trap05", "targetname");
 
   while(1)
   {
      trap moveX ( 768, 1 );
      trap waittill ("moveedone");
      trap moveX ( -768, 1):
      trap waittill ("moveedone");
   }
}
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Pun1sheR
CJ Wannabe
CJ Wannabe
Posts: 39
Joined: August 27th, 2013, 7:29 pm

Re: Will this work for a moving platform?

Post by Pun1sheR » January 18th, 2014, 11:39 pm

Thanks i got it working

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests