---
name: "BIN_fnc_addObjectsToArea"
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_addObjectsToArea
revid: 309616
updated: 2022-05-05T12:07:44Z
---

# BIN_fnc_addObjectsToArea

*Function · Collisions · Arma 3 v1.94*

## Description

Adds given array of objects to area, ovewriting previous objects data stored for the area in extension

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

## Syntax

*syntax inferred from the function header*

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

**Parameters:**

- `param0` — 0: STRING - area name
- `param1` — 1: ARRAY - array of objects to add

**Returns:** NUMBER - number of objects added

## Examples

### Example 1

```sqf
["myArea", [obj1,ob2,...]]  call BIN_fnc_addObjectsToArea
```

## 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:
    Adds given array of objects to area, ovewriting previous objects data stored for the area in extension

Parameter(s):
    0: STRING - area name
    1: ARRAY - array of objects to add

Returns:
    NUMBER - number of objects added

Example:
    ["myArea", [obj1,ob2,...]]  call BIN_fnc_addObjectsToArea
*/
```

<sub>Source: [BI Community Wiki — BIN fnc addObjectsToArea](https://community.bistudio.com/wiki/BIN_fnc_addObjectsToArea) (revision 309616).</sub>
