Possible? - Streamer
#4

So you would like to destroy all objects that are in virtual world X?

Code:
// Looping through all of the objects on the server.
for(new i = 0; i < Streamer_CountItems(STREAMER_TYPE_OBJECT, 1); i++)
{
    // Getting the virtual world of the object.
    new virtual_world = Streamer_GetIntData(STREAMER_TYPE_OBJECT, i, E_STREAMER_WORLD_ID);
    
    // For example let's say we want to destroy all the objects in virtual world 777.
    if(virtual_world == 777) { DestroyDynamicObject(i); }
}
I haven't tested this but i'm 90% sure that this should work.
Reply


Messages In This Thread
Possible? - Streamer - by Deathlane - 21.05.2015, 07:06
Re: Possible? - Streamer - by Vince - 21.05.2015, 07:14
Re: Possible? - Streamer - by Deathlane - 21.05.2015, 07:23
Re: Possible? - Streamer - by Whizion - 21.05.2015, 07:40
Re: Possible? - Streamer - by Deathlane - 21.05.2015, 07:53
Re: Possible? - Streamer - by Gammix - 21.05.2015, 08:07
Re: Possible? - Streamer - by ball - 21.05.2015, 08:17
Re: Possible? - Streamer - by Deathlane - 21.05.2015, 10:14
Re: Possible? - Streamer - by ball - 21.05.2015, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)