PDA

View Full Version : MoveObject Problem


Zigonja
20/06/2013, 03:15 PM
So here is the code im using:
movingarmysr1 = CreateObject(1583,215.5000000,1962.4000200,4409.89 99000,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.

jakejohnsonusa
20/06/2013, 03:37 PM
Read this: http://wiki.sa-mp.com/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.