Teleporters Help

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

Moderator: Core Staff

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » February 24th, 2006, 1:21 am

Drofder, is there a way to control the speed of the teleporter?
Like to have it move you alittle more slowly?
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

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

Post by Drofder2004 » February 24th, 2006, 5:46 pm

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.
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

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Post by Nightmare » February 24th, 2006, 9:31 pm

Alright, thanks alot :)
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

Spyhunter

Post by Spyhunter » March 19th, 2006, 7:08 pm

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(); 

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests