---
name: "BIS_fnc_destroyCity"
type: function
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": "global", "server_exec": true}
source: https://community.bistudio.com/wiki/BIS_fnc_destroyCity
revid: 349509
updated: 2023-11-08T17:09:13Z
---

# BIS_fnc_destroyCity

*Function · Environment · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.56*

Locality: effect **global** · **server execution only**

## Description

Destroys building in given area based on input seed.

## Syntax

```sqf
[position, areaSize, seed, blacklist] call BIS_fnc_destroyCity
```

**Parameters:**

- `position`: [Object](../topics/Object.md), [String](../topics/String.md) or [Position](../topics/Position.md) - center of the area:
  - [Object](../topics/Object.md) - position of the object will be used
  - [String](../topics/String.md) - marker name
  - [Position](../topics/Position.md)
- `areaSize`: [Number](../topics/Number.md) - (Optional, default 1000) area radius
- `seed`: [Number](../topics/Number.md) - (Optional, default 1138) destruction's random seed
- `blacklist`: [Array](../topics/Array.md) - (Optional, default `[]`) array of spared buildings

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when completed

## Examples

### Example 1

```sqf
["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;
```

## See also

[setDamage](../commands/setDamage.md) · [nearestBuilding](../commands/nearestBuilding.md) · [buildingPos](../commands/buildingPos.md)

<sub>Source: [BI Community Wiki — BIS fnc destroyCity](https://community.bistudio.com/wiki/BIS_fnc_destroyCity) (revision 349509).</sub>
