Destroy lots of objects
#1

What would be the best way to destroy a lot of objects at the same time?
As when you unload a FS the objects don't get deleted.
Reply
#2

Should be DestroyObject https://sampwiki.blast.hk/wiki/DestroyObject
Reply
#3

Make a loop at OnFilterScriptExit-callback?

pawn Код:
for(new o = 0; o < MAX_OBJECTS; o++)
{
  if(IsValidObject(o)) DestroyObject(o);
}
Reply
#4

Quote:
Originally Posted by Don Correlli
Make a loop at OnFilterScriptExit-callback?

pawn Код:
for(new o = 0; o < MAX_OBJECTS; o++)
{
  if(IsValidObject(o)) DestroyObject(o);
}
Sweet, cheers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)