Barrier opening problem
#1

Hello, i have created a closed barrier and a script which should open a barrier in some time. But the barrier instantly changes possition from _ to |. how to make it move slowly?

Код:
		
if(IsPlayerInRangeOfPoint(playerid, 10.0 ,  1544.70215, -1630.84375, 13.21280))
{
	if(player[playerid][job] == 1)
	{
	    	if(!gates[22])
	    	{
                 	MoveDynamicObject(barrier, 1544.70215, -1630.84375, 13.21280, 0.1, 0.00000, 0.00000, 90.00000);
                        gates[22] = true;
    		}
                else
                {
			MoveDynamicObject(barrier,  1544.70215, -1630.84375, 13.21280, 0.1, 0.00000, 90.00000, 90.00000);
			gates[22] = false;
		}
	}
	return 0;
}
Reply
#2

Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
Reply
#3

Change the 0.1 to a higher number.
The higher number, the slower it will move.
Reply
#4

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Change the 0.1 to a higher number.
The higher number, the slower it will move.
You crazy scripter you need to move the gate on the x, y, or z slightly for rotations to work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)