Page 2 of 2

Posted: February 24th, 2006, 1:21 am
by Nightmare
Drofder, is there a way to control the speed of the teleporter?
Like to have it move you alittle more slowly?

Posted: February 24th, 2006, 5:46 pm
by Drofder2004
Nightmare wrote:Drofder, is there a way to control the speed of the teleporter?
Like to have it move you alittle more slowly?

Code: Select all

main()
{
time = 5;
entTransporter = getentarray("enter","targetname");

if(isdefined(entTransporter))
{
for(i=0;i<entTransporter.size;i++)
entTransporter[i] thread Transporter();
}
}

Transporter()
{
while(1)
{
self waittill("trigger",user);
entTarget = getent(self.target, "targetname");

wait .1;
user moveTo((entTarget.origin), time);
wait .1;
}
}
Change the time at top of code. Hopefully that works.

Posted: February 24th, 2006, 9:31 pm
by Nightmare
Alright, thanks alot :)

Posted: March 19th, 2006, 7:08 pm
by Spyhunter
It gives me an error, a bad syntax error on line 7, one of these lines:

Code: Select all

if(isdefined(entTransporter)) 
{ 
for(i=0;i<entTransporter.size;i++) 
entTransporter[i] thread Transporter();