MoveObject Problem - 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 Problem (
/showthread.php?tid=445262)
MoveObject Problem -
Zigonja - 20.06.2013
So here is the code im using:
pawn Код:
movingarmysr1 = CreateObject(1583,215.5000000,1962.4000200,4409.8999000,0.0000000,0.0000000,90.0000000); //object(tar_gun2) (5)
MoveObject(movingarmysr1, 215.7000000,1951.9000200,4409.8999000, 5.00);
The problem appears to be that, the object moves like in 2 seconds, even I defined 5 seconds, I've also tryed 50.00 but that's too fast, and 0.5 it's too slow.
Re: MoveObject Problem -
jakejohnsonusa - 20.06.2013
Read this:
https://sampwiki.blast.hk/wiki/MoveObject
It's says this: "Float:Speed - The speed at which to move the object (units per second)."
Meaning it's not moving there in that ammount of seconds, it moving that many units over every 1 second.
Just mess around with it, add more if it's too fast. Subtract if it's too slow.