05.10.2015, 11:50
Hello guys i want to remove all streamer objects in virtual world 10 how can i do that.
i will +rep if the function will help.
i will +rep if the function will help.
for (new i, j = Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i < j; i++) {//loop through all dynamic objects
if (IsValidDynamicObject(i) && Streamer_GetIntData(STREAMER_TYPE_OBJECT, i, E_STREAMER_WORLD_ID) == 10) {//check for virtual world 10
DestroyDynamicObject(i);//destroy the object in world id 10
}
}