trap05()
{
trap = getEnt ("trap05", "targetname");
while(1)
{
trap moveX ( 768, 1 );
trap waittill ("moveedone");
trap moveX ( -768, 1):
}
}
Will this work for a moving platform?
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 39
- Joined: August 27th, 2013, 7:29 pm
-
- Site Admin
- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Will this work for a moving platform?
Code: Select all
trap05()
{
trap = getEnt ("trap05", "targetname");
while(1)
{
trap moveX ( 768, 1 );
trap waittill ("moveedone");
trap moveX ( -768, 1):
trap waittill ("moveedone");
}
}

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
-
- CJ Wannabe
- Posts: 39
- Joined: August 27th, 2013, 7:29 pm
Re: Will this work for a moving platform?
Thanks i got it working