Delete Multiple Objects
Zephirius
Member Posts: 419
How would you delete multiple object simultaneously - in this case 26 placeable objects. There has to be a more effecient way to to this than using DeleteObject 26 times...?
void DestroyAll(object oObject, int nAmount)
{
//Not sure what to do
}
0
Comments
void DestroyAll(string sTag) { object oObject = GetObjectByTag(sTag, 0); int n = 0; while (GetIsObjectValid(oObject)) { SetPlotFlag(oObject, FALSE); DestroyObject(oObject); oObject = GetObjectByTag(sTag, ++n); } }Will give this a try -