Jump to content
Sign in to follow this  
Balschoiw

Remove Objects and Units

Recommended Posts

I want to reduce engine load for a MP mission and therefore decided to delete all objects and units I customly placed at a spot.

I set up a trigger covering the region had it activated by anyone and ran my little delete script with this command

"deletevehicle _x" foreach list eraser

The problem is that only units are removed but not objects that I have placed on the map. Is there an easy way to remove them aswell or do I have to list them one by one in the script ?

Share this post


Link to post
Share on other sites

For deleteting the units put in 'On Activation' field of your trigger

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

"deleteVehicle _x" forEach thisList

You're correct about the objects by naming-listing one by one (deleteVehicle unitname), I'm not awared of any other 'easier' way, and you can put those commands in 'On Activation' field of that trigger aswell, you don't need a script for it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×