MoveObject Problem
#1

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.
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)