Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_spawnObjects

Also available as Markdown and JSON, or read the original wiki page.

Description

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

Syntax

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

Parameters:

Returns: Array of created Objects

Examples

Example 1

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 · createSimpleObject · enableSimulation