MoveObject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MoveObject (
/showthread.php?tid=474369)
MoveObject -
ancezas - 07.11.2013
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
AW: MoveObject -
Nero_3D - 07.11.2013
Read the note,
https://sampwiki.blast.hk/wiki/MoveObject
Re: MoveObject -
ancezas - 07.11.2013
still didint get the point of function
AW: MoveObject -
Nero_3D - 07.11.2013
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
Re: MoveObject -
ancezas - 07.11.2013
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
Re: MoveObject -
Josh Greening - 08.11.2013
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 );
Re: MoveObject -
ancezas - 08.11.2013
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