PDA

View Full Version : Object destroying.


audriuxxx
04/04/2014, 04:01 PM
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?

LocMax
04/04/2014, 05:20 PM
Assign them to an ID an then you can destroy 'em.

S4t3K
04/04/2014, 06:04 PM
Use a timer or a thread.

Then assign them a var.



new myObject;

myObject = CreateObject(params);
SetTimerEx("destroyMyObject", 300, "i", myObject);

public destroyMyObject(objectid)
{
DestroyObject(myObject);
return printf("myObject successfully destroyed !");
}