View Single Post
Old 24/01/2011, 02:40 PM   #10
1D10T
Little Clucker
 
Join Date: Jan 2011
Location: Netherlands
Posts: 15
Reputation: 0
Default Re: Per cent calculation

Hi all,

I was wandering if you can calculate the time of a Timer. If so I could create timers that calculate how long they have to roll depending on what FloorLevel you are and which FloorLevel you want to go to. I haven't figured out the correct formula to calculate this but is it possible? Because then you can use one timer with variable that change the duration of the timer.

Quote:
if(floor == 0 || FloorLevel != 0)
{
SendClientMessage( playerid, WHITE, "You selected the Ground Floor" );
MoveDynamicObject(Elevator, 1786.678100, -1303.459472, 14.551476, 10);
ElevatorState = ELEVATOR_STATE_MOVING;
SetTimer("Floor0", [Calculation], 0);
return 1;
}

Last edited by 1D10T; 24/01/2011 at 04:56 PM. Reason: We got the original lselevator working.
1D10T is offline