open.mp forum
[Pawn] Object movement - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Object movement (/showthread.php?tid=1291)



Object movement - FeNiixX - 2020-10-28

Hello, how can I make an object move without stopping from one position to another? That is, when I type a cmd: object1 it moves without stopping until I retype the cmd ...



Can it be achieved with MoveObject? ...



thanks.


RE: Object movement - Expert* - 2020-10-30

Uff.

I have no idea how object movement works.

If it's already moving and you want it to move to another location does it start from pos where it was created or from "last pos it was in while moving" ?

or does it have to finish that MoveObject func before ir can move to another location ?


RE: Object movement - Pinch - 2020-10-30

There is a callback called OnObjectMoved but I don't know if it's smooth enough because I recently saw discussion which states it isn't


RE: Object movement - Josh - 2020-10-31

(2020-10-30, 07:40 PM)Expert* Wrote: Uff.

I have no idea how object movement works.

If it's already moving and you want it to move to another location does it start from pos where it was created or from "last pos it was in while moving" ?

or does it have to finish that MoveObject func before ir can move to another location ?



The object will move from the last interpolated position (i.e. it was 0,0,0 moving to 100,100,0 but now it is 50,50,0) it will start at 50,50.