---
name: "BIN_fnc_getTerrainObjects"
type: function
status: ok
groups: ["Collisions"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_getTerrainObjects
revid: 309520
updated: 2022-05-05T12:06:43Z
---

# BIN_fnc_getTerrainObjects

*Function · Collisions · Arma 3 v1.94*

## Description

Returns terrain objects of the given type for the given area dimensions

> [!NOTE]
> This content is exclusive to the Arma 3 Contact Expansion.

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param1] call BIN_fnc_getTerrainObjects
```

**Parameters:**

- `param0` — 0: ARRAY - area details in Area format (see BIS_fnc_getArea)
- `param1` — 1: ARRAY - types of terrain objects, for example ["HOUSE", "TREE"]

**Returns:** ARRAY of objects

## Examples

### Example 1

```sqf
["myArea", [player, 100], ["HOUSE", "TREE"]] call BIN_fnc_getTerrainObjects
```

## Function header

The comment at the top of the function's file in the game; this page's params, syntax, returns, examples, description come from it.

```sqf
/*
    Killzone_Kid

Description:
    Returns terrain objects of the given type for the given area dimensions

Parameter(s):
    0: ARRAY - area details in Area format (see BIS_fnc_getArea)
    1: ARRAY - types of terrain objects, for example ["HOUSE", "TREE"]

Returns:
    ARRAY of objects

Example:
    ["myArea", [player, 100], ["HOUSE", "TREE"]] call BIN_fnc_getTerrainObjects
*/
```

<sub>Source: [BI Community Wiki — BIN fnc getTerrainObjects](https://community.bistudio.com/wiki/BIN_fnc_getTerrainObjects) (revision 309520).</sub>
