Page 1 of 1
Will this work for a moving platform?
Posted: January 14th, 2014, 12:21 am
by Pun1sheR
trap05()
{
trap = getEnt ("trap05", "targetname");
while(1)
{
trap moveX ( 768, 1 );
trap waittill ("moveedone");
trap moveX ( -768, 1):
}
}
Re: Will this work for a moving platform?
Posted: January 14th, 2014, 1:19 pm
by Pedsdude
Have you tried it?
Re: Will this work for a moving platform?
Posted: January 14th, 2014, 5:13 pm
by Drofder2004
Code: Select all
trap05()
{
trap = getEnt ("trap05", "targetname");
while(1)
{
trap moveX ( 768, 1 );
trap waittill ("moveedone");
trap moveX ( -768, 1):
trap waittill ("moveedone");
}
}
Re: Will this work for a moving platform?
Posted: January 18th, 2014, 11:39 pm
by Pun1sheR
Thanks i got it working