Teleportation help

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

Moderator: Core Staff

Post Reply
Jumpy'z
CJ Wannabe
CJ Wannabe
Posts: 13
Joined: December 28th, 2006, 5:55 pm
Location: Quebec, Canada

Teleportation help

Post by Jumpy'z » December 28th, 2006, 7:57 pm

i want to make a portal like in nm_portal... some1 can help me ?

Soviet
Core Staff
Core Staff
Posts: 7760
Joined: April 23rd, 2005, 9:12 pm
Location: Plano, Texas
Contact:

Post by Soviet » December 28th, 2006, 8:31 pm

let me help :wink:

i referred him here, here is his .gsc, he doesnt get a compile error but it doesnt work.

Code: Select all

main() 
{ 
maps\mp\_load::main(); 

level._effect["smoke"] = loadfx ("fx/smoke/ash_smoke.efx");
maps\mp\_fx::loopfx("smoke", (3568, 2304, 328), 0.7);

thread teleporter1();
}

teleporter1()
{
     while(1)
     {
         players = getentarray("player","classname");

         for(i=0,i<players.size,i++)
         {
         finishtrig = getent ("teleporter_1","targetname");
         finishtrig waittill ("trigger",user);

         user setOrigin( (3408, 2360, 144) );
         }
     wait 2;
     }
}

Image
ImageImageImage
Image
"Zaitsev is a cunt." - Pedsdude

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

Post by Nightmare » December 30th, 2006, 4:37 am

honestly I dont see anything wrong with it, just to things that might change it.

The targetname isnt correct or change wait 2 to wait .5

Everything else looks fine.
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]

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests