Removing all objects from a certain world.
#10

Quote:
Originally Posted by jlalt
Посмотреть сообщение
yes as I've mentioned above


this will count all the objects you got so the set array function will be in side a loop:
PHP код:
    new objects CountDynamicObjects();
    for(new 
0objectsi++)
    {
        
Streamer_SetArrayData(STREAMER_TYPE_OBJECTiE_STREAMER_WORLD_IDvarworlds);
    } 
Streamer_AppendArrayData or RemoveArrayData would be a good way too. That lets you keep all other worlds, if needed of course.

Furthermore the highest Streamer ID isn't neccessarily the number of objects created. Use Streamer_GetUpperBound().
Reply


Messages In This Thread
Removing all objects from a certain world. - by iLearner - 22.07.2017, 09:27
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 09:49
Re: Removing all objects from a certain world. - by Vince - 22.07.2017, 10:06
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 10:33
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 10:49
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 10:54
Re: Removing all objects from a certain world. - by jlalt - 22.07.2017, 10:58
Re: Removing all objects from a certain world. - by Vince - 22.07.2017, 11:17
Re: Removing all objects from a certain world. - by iLearner - 22.07.2017, 11:21
Re: Removing all objects from a certain world. - by NaS - 22.07.2017, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)