From Bohemia Interactive Community
					 
					
					
					
					
Hover & click on the images for description
 
Description
- Description:
 
- Create a stack of objects at given position or on top of given object (eg. table).
 
- Execution:
 
- call
 - Groups:
 
- Object Manipulation
 
Syntax
- Syntax:
 
- [position, className, count, offsetMatrix, offsetDir, dirNoise, enableSimulation] call BIS_fnc_spawnObjects
 - Parameters:
 
- position: Array format PositionASL, or Array as [referenceObject, placement]
- referenceObject: Object
 
- placement: String - 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 - class of the object(s) to spawn; all will use the same class
 
- count: Number - (Optional, default: 1) how many objects will be spawned
 
- offsetMatrix: Array - (Optional, default: [0,0,0]) starting spawning position offset
 
- offsetDir: Number - (Optional, default: 0) starting spawning direction offset
 
- dirNoise: Code - (Optional, default: {0}) spawned object direction delta from the starting direction, defined as code returning dir delta value
 
- enableSimulation: Boolean - (Optional, default: false) shall the simulation of the spawned objects be enabled or not
 - Return Value:
 
- Array of created Objects
 
Examples
- Example 1:
 
Additional Information
- See also:
 
- createVehicle createSimpleObject enableSimulation
 
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here!
Add Note