SA-MP Forums Archive
Moveobject and destroy - 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 and destroy (/showthread.php?tid=604392)



Moveobject and destroy - ScIrUsna - 04.04.2016

Hi,

I use moveobject and destroy it at some time when he is not move all distance it's still call onobjectmoved when i destroy it or no?


Re: Moveobject and destroy - Harty - 04.04.2016

What ?


Re: Moveobject and destroy - ScIrUsna - 04.04.2016

Код:
new obbas = CreateObject(...);
MoveObject(obbas, X,Y,Z,2.0 );


settimerex(...for ex 2 sec timer);

forward timer(..)
public timer(..)
{
DestroyObject(obbas);
}
after 2 seconds i destroy object, but he can move to X,Y,Z take could take more time about 10-20 sec. this mean i destroy it when it move and it occur to call OnObjectMoved?