Jump to content
Sign in to follow this  
disco.modder

How to destroy infrastructure within area marker?

Recommended Posts

during mission load Id like to destroy any buildings and structures that are destructible within a designated marker area/zone to replicate a war zone. Is there any way to do this?

Share this post


Link to post
Share on other sites

{
  _x setDamage 1;
}  forEach nearestObjects [TRIGGERNAME, ["house"], RADIUS];

Keep in mind that this will cause the game to studder for a moment. Lower the radius or try a for loop to destroy one house after another

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  

×