Teleportation help
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 13
- Joined: December 28th, 2006, 5:55 pm
- Location: Quebec, Canada
Teleportation help
i want to make a portal like in nm_portal... some1 can help me ?
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
let me help
i referred him here, here is his .gsc, he doesnt get a compile error but it doesnt work.

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;
}
}
-
- Core Staff
- Posts: 2688
- Joined: January 12th, 2006, 10:09 pm
- Contact:
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.
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]
"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]