Arma 3 Scripting

BIS_fnc_spawnObjects

  • Arma 3 v1.00

Function · Markdown · JSON · 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