Lift speed?
#2

Using a timer.

pawn Код:
new ELSpeed,
         ELTimer;

ELTimer = SetTimer("ElevatorSpeed", 1000, true);

forward ElevatorSpeed();

public ElevatorSpeed()
{
        ELSpeed ++;
        if(ELSpeed == 1)
        {
             // Set your elevators object Speed
        }
        else if(ELSpeed == 6) // after 6 seconds
        {
             // Set your elevators object speed
        }
        else if(ELSpeed == 10) // after 10 seconds
        {
             // Stop elevator
             KillTimer(ELTimer);
             ELSpeed = 0;
        }
        return 1;
}
Reply


Messages In This Thread
Lift speed? - by Louris - 03.12.2012, 16:30
Re: Lift speed? - by Cypress - 03.12.2012, 17:40
Re: Lift speed? - by Louris - 04.12.2012, 05:04
Re: Lift speed? - by Louris - 04.12.2012, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)