OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Rellikki on 30 Jun 2009, 23:18:28
-
I was wondering if there's any easy way to destroy large amounts of buildings? I want to put a whole town into ruins, but typing the setDamage command for every each one of the building IDs is arduous. Creating explosions in the town is out of question too, because there's some life in the town.
-
As a rough direction for you, it's probably possible to return all buildings using the nearestObjects command (http://community.bistudio.com/wiki/nearestObjects) and cycling through the returned array, using setDamage to ruin them.
-
Yes, it works perfectly. Thanks.