SA-MP Forums Archive
Really quick MoveDynamicObject question! - 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: Really quick MoveDynamicObject question! (/showthread.php?tid=472365)



Really quick MoveDynamicObject question! - Jerm - 28.10.2013

If I set an object (say an elevator) to move up really slow will it run the next line of code when it starts moving or when it has finished?

If it starts the next line of code immediately what is a good way to detect whether said elevator is on the floor before opening the door?


Re: Really quick MoveDynamicObject question! - RowdyrideR - 28.10.2013

it's immediately, I didn't get you well but you can use a timer?


Re: Really quick MoveDynamicObject question! - RajatPawar - 28.10.2013

Quote:
Originally Posted by Jerm
Посмотреть сообщение
If I set an object (say an elevator) to move up really slow will it run the next line of code when it starts moving or when it has finished?

If it starts the next line of code immediately what is a good way to detect whether said elevator is on the floor before opening the door?
https://sampwiki.blast.hk/wiki/OnObjectMoved
Maybe this?


Re: Really quick MoveDynamicObject question! - Jerm - 28.10.2013

Rowdy, yes that's what I meant thank you. Timer will not work in this case.

Rajat, That is exactly what I needed but will it work with MoveDynamicObject?


Re: Really quick MoveDynamicObject question! - RajatPawar - 28.10.2013

forward OnDynamicObjectMoved(objectid);
Use this if you use a streamer!


Re: Really quick MoveDynamicObject question! - Jerm - 28.10.2013

thanks again +repped