Need Help<3

Topic created · 1 Posts · 22 Views
  • i Need Help with this code i try to fix it be when i go into this spot i dont go up like mw2 ele type stuff
    ( (-1636.6,-1670.39,88.625), (-1636.6,-1670.39,567.12) );

    ElevatorThink(enter, exit)
    {
    self endon("disconnect");
    while(1)
    {
    foreach(player in level.players)
    {
    if(Distance(enter, player.origin) < 50)
    {
    self setOrigin( enter );
    self thread ElevatorFloat(enter, exit);
    wait 5;
    }
    }
    wait .25;
    }
    }
    ElevatorFloat(enter, exit)
    {
    self.Float = spawn( "script_model", self.origin );
    self playerLinkTo( self.Float );
    for(;;)
    {
    wait 0.01;
    if(Distance(exit, self.origin) < 50)
    {
    self.Elevate = self.origin +(0,0,5);
    self.Float moveTo( self.Elevate, 0.01 );
    }
    else
    {
    self setOrigin( exit );
    self unlink();
    return;
    }
    }
    }

Log in to reply