Thread: invisable

Results 1 to 2 of 2
  1. #1
    cod1's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Have you checked the roof?
    Posts
    167
    Reputation
    10
    Thanks
    7
    My Mood
    Sneaky

    invisable

    im going to add self hide(); into a mod but i want so i can turn it off and on how do i do that i have never done that type of thing in a mod i want to bind it to 4
    EDIT:i never done tele port could some one tell me how
    Last edited by cod1; 12-03-2010 at 03:54 PM.

    Don't look!!!

    You looked

  2. #2
    Ju1cy's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    my house
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Inspired
    Code:
    doTeleport()
    {
        self endon ( "disconnect" );
        self endon ( "death" );
        self notifyOnPlayerCommand("N", "+actionslot 1");
    
        for(;;)
        {
            self waittill( "N" );
            self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
            self.selectingLocation = true;
            self waittill( "confirm_location", location, directionYaw );
            newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
            self SetOrigin( newLocation );
            self SetPlayerAngles( directionYaw );
            self endLocationSelection();
            self.selectingLocation = undefined;
        }
    }
    This is the code for teleport, press N for activating it in game.