Object destroying.
#1

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?
Reply
#2

Assign them to an ID an then you can destroy 'em.
Reply
#3

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 !");

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)