Remove objects!
#1

Is there any way to loop all objects by some ID and delete them?
Reply
#2

You can't delete all objects, it'll just freeze the client lol...

It's too much to handle, it can't be done.
Reply
#3

There's no function to get an object id.
You need to create them, and assign them to an array or variables in order to use them.
Reply
#4

I dont think so anyone of you know the function:
pawn Код:
IsValidObject(objectid);
Very easy to do so:
pawn Код:
DestroyAllObjects()
{
       for(new i; i < MAX_OBJECTS; ++i)
       {
              if(IsValidObject(i))
              {
                      DestroyObject(i);
               }
       }
}
Reply
#5

That destroys all objects, he was asking to destroy objects by the object id.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)