MoveObject
#1

pawn Код:
CMD:durys(playerid,params[])
{
    //ЋUB Nr.1 Durys
    if(IsPlayerInRangeOfPoint( playerid, 2, -157.0302734, -150.5927734, 2.1930001) )
    {
        MoveObject( Vartai, -157.0302734, -150.5927734, 2.1930001, 0.15, 0.0000000,0.0000000,79.9969482 );
    }
    else
    {
        MoveObject( Vartai, -157.0302734, -150.5927734, 2.1930001, 0.15, 0.0000000,0.0000000,349.9969482 );
    }
    return 1;
}
it's not moving slowley it's just opens how to move it slowely
Reply
#2

Read the note, https://sampwiki.blast.hk/wiki/MoveObject
Reply
#3

still didint get the point of function
Reply
#4

The function is called MoveObject and it will only work if the object is moved (not only rotated)

Dont ask me why, just accept that it is like it is
Reply
#5

when i change from 0.0001 to 0.0002 its not helping but when im changing 0 to 1 its mowing ok, but then i get the object not in the ritg position
Reply
#6

Or change the speed of the object, as 0.15 is the time it takes to move from the CLOSED position, to the OPEN position.

Change the number from 0.15 to 5.0, and try that.

Example:
MoveObject( Vartai, -157.0302734, -150.5927734, 2.1930001, 5.0, 0.0000000,0.0000000,349.9969482 );
Reply
#7

Quote:
Originally Posted by Josh Greening
Посмотреть сообщение
Or change the speed of the object, as 0.15 is the time it takes to move from the CLOSED position, to the OPEN position.

Change the number from 0.15 to 5.0, and try that.

Example:
MoveObject( Vartai, -157.0302734, -150.5927734, 2.1930001, 5.0, 0.0000000,0.0000000,349.9969482 );
not working
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)