---
name: "BIS_fnc_spawnObjects"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_spawnObjects
revid: 378126
updated: 2026-02-21T14:35:37Z
---

# BIS_fnc_spawnObjects

*Function · Object Manipulation · Arma 3 v1.00*

## Description

Create a stack of objects at given position or on top of given object (eg. table).

## Syntax

```sqf
[position, className, count, offsetMatrix, offsetDir, dirNoise, enableSimulation] call BIS_fnc_spawnObjects
```

**Parameters:**

- `position`: [Array](../topics/Array.md) format [PositionASL](../topics/Position.md#positionasl), or [Array](../topics/Array.md) as [referenceObject, placement]
  - referenceObject: [Object](../topics/Object.md)
  - placement: [String](../topics/String.md) - can be:
    - "BOTTOM" = at the bottom of the object
    - "TOP" = top of the objects boundingbox
    - "GROUND" = sitting just on the ground
    - "ROADWAY" = sitting just on the ground
- `className`: [String](../topics/String.md) - class of the object(s) to spawn; all will use the same class
- `count`: [Number](../topics/Number.md) - (Optional, default: 1) how many objects will be spawned
- `offsetMatrix`: [Array](../topics/Array.md) - (Optional, default: [0, 0, 0]) starting spawning position offset
- `offsetDir`: [Number](../topics/Number.md) - (Optional, default: 0) starting spawning direction offset
- `dirNoise`: [Code](../topics/Code.md) - (Optional, default: { 0 }) spawned object direction delta from the starting direction, defined as code returning dir delta value
- `enableSimulation`: [Boolean](../topics/Boolean.md) - (Optional, default: false) shall the simulation of the spawned objects be enabled or not

**Returns:** [Array](../topics/Array.md) of created [Object](../topics/Object.md)s

## Examples

### Example 1

```sqf
private _randomPos = [(random 0.2) -0.1, (random 0.2) -0.1, 0];
_objects = [[_table, "TOP"], "Box_NATO_Wps_F", 3, _randomPos, (random 20) - 10] call BIS_fnc_spawnObjects;
```

## See also

[createVehicle](../commands/createVehicle.md) · [createSimpleObject](../commands/createSimpleObject.md) · [enableSimulation](../commands/enableSimulation.md)

<sub>Source: [BI Community Wiki — BIS fnc spawnObjects](https://community.bistudio.com/wiki/BIS_fnc_spawnObjects) (revision 378126).</sub>
