{"name":"BIS_fnc_destroyCity","operator":null,"title":"BIS fnc destroyCity","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyCity","revid":349509,"updated":"2023-11-08T17:09:13Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.56"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.56"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"global","server_exec":true},"exec":null,"description":"Destroys building in given area based on input seed.","syntaxes":[{"syntax":"[position, areaSize, seed, blacklist] call BIS_fnc_destroyCity","since":null,"effect":null,"exec":null,"params":[{"name":"position","type":"Object, String or Position","optional":false,"default":null,"description":"center of the area:\n- Object - position of the object will be used\n- String - marker name\n- Position","types":["Object","String","Position"],"since":null,"text":"position: Object, String or Position - center of the area:\n- Object - position of the object will be used\n- String - marker name\n- Position"},{"name":"areaSize","type":"Number","optional":true,"default":"1000","description":"area radius","types":["Number"],"since":null,"text":"areaSize: Number - (Optional, default 1000) area radius"},{"name":"seed","type":"Number","optional":true,"default":"1138","description":"destruction's random seed","types":["Number"],"since":null,"text":"seed: Number - (Optional, default 1138) destruction's random seed"},{"name":"blacklist","type":"Array","optional":true,"default":"`[]`","description":"array of spared buildings","types":["Array"],"since":null,"text":"blacklist: Array - (Optional, default `[]`) array of spared buildings"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when completed","text":"Boolean - true when completed"}}],"examples":[{"text":"```sqf\n[\"destroyBase\", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;\n```","code":["[\"destroyBase\", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setDamage","nearestBuilding","buildingPos"],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: Environment","Functions","Functions: Global Effect","Functions: Server Execution","Introduced with Arma 2: Operation Arrowhead version 1.56","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}