Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help teleport
#1
how do i set a teleporter in my map?
Reply

#2
Code:
init()
{
        level.doorwait = 2;
        level.elevator_model["enter"] = "mp_flag_allies_1";
        level.elevator_model["exit"] = "mp_flag_axis_1";
        precacheModel(level.elevator_model["enter"]);
        precacheModel(level.elevator_model["exit"]);
}

Code:
CreateElevator(enter, exit, angle)
{
        flag = spawn( "script_model", enter, 0 );
        flag setModel( level.elevator_model["enter"] );
        flag SetOwner( level );
        wait 0.01;
        flag = spawn( "script_model", exit, 0 );
        flag setModel( level.elevator_model["exit"] );
        flag SetOwner( level );
        wait 0.01;
        self thread ElevatorThink(enter, exit, angle);
}

ElevatorThink(enter, exit, angle)
{
        self endon("disconnect");
        while(1)
        {
                for(i = 0; i < level.players.size; i++)
                {
                        if(DistanceSquared(enter, level.players[i].origin) <= Power(50, 2)){
                                level.players[i] SetOrigin(exit);
                                level.players[i] SetPlayerAngles(angle);
                        }
                }
                wait .25;
        }
}

etc..
Reply

#3
how do ya want to teleport?
with flags or how?
Reply

#4
yhe if ya walk in a flag u get teleported
Reply

#5
(03-19-2011, 18:54)kippenpoten Wrote: yhe if ya walk in a flag u get teleported

Then look at doh s post Big Grin
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Make area detect. flag Teleport lewisbibo 4 4,992 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
  Help bunkers,tex, glusses and Flags teleport funny 4 3,439 01-28-2013, 21:57
Last Post: 99IRock
  [Release] Teleport plugin 8q4s8 15 10,716 12-01-2012, 13:46
Last Post: koro35
Question Help Teleport still need help koro35 7 4,046 11-29-2012, 14:32
Last Post: 8q4s8
  Preview Teleport plugin [Z00MBY] Alex 12 8,658 09-06-2012, 13:13
Last Post: jari333
  Help with teleport code sac0o01 2 2,250 05-28-2012, 18:22
Last Post: sac0o01
  [Request] Teleport other CJGreenLabel 1 1,804 03-14-2012, 14:41
Last Post: choppson
  administrative teleport Camelot 1 1,774 03-13-2012, 21:59
Last Post: OrangePL
  [Unapproved] new teleport number1 9 4,456 06-18-2011, 12:18
Last Post: aosma8
  Teleport sniper MoD djlory3000 7 4,968 06-16-2011, 07:54
Last Post: d0h!

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.