10-29-2011, 14:18
@4FunPlayin requested me a code to destroy models and things to clean maps and allow making bigger bunkers and I gave him some code and he repeated it many times with all the things I sent him. So thanks to @4FunPlayin.
Code:
models = GetEntArray("script_model","classname");
for(i=0;i<models.size;i++)
models[i] delete();
smodels = GetEntArray("script_brushmodel","classname");
for(i=0;i<smodels.size;i++)
smodels[i] delete();
destructibles = GetEntArray("destructible","targetname");
for(i=0;i<destructibles.size;i++)
destructibles[i] delete();
animated_models = getentarray( "animated_model", "targetname" );
for(i=0;i<animated_models.size;i++)
animated_models[i] delete();
ents = getentarray("destructable", "targetname");
for(i=0;i<ents.size;i++)
ents[i] delete();
barrels = getentarray ("explodable_barrel","targetname");
for(i=0;i<barrels.size;i++)
barrels[i] delete();
radiationFields = getentarray("radiation", "targetname");
for(i=0;i<radiationFields.size;i++)
radiationFields[i] delete();
level deletePlacedEntity("misc_turret");