Object destroying. - 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: Object destroying. (
/showthread.php?tid=504471)
Object destroying. -
audriuxxx - 04.04.2014
Hi,
I create 10 object with CreateObject. Can i destroy them after 300ms? i mean, that objects can be created after 300ms, it's can be that they not be created in 300ms?
Re: Object destroying. -
LocMax - 04.04.2014
Assign them to an ID an then you can destroy 'em.
Re : Object destroying. -
S4t3K - 04.04.2014
Use a timer or a thread.
Then assign them a var.
PHP Code:
new myObject;
myObject = CreateObject(params);
SetTimerEx("destroyMyObject", 300, "i", myObject);
public destroyMyObject(objectid)
{
DestroyObject(myObject);
return printf("myObject successfully destroyed !");
}