武装突袭 Wiki
Advertisement
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
/*

	Description:
	Creates an objects or stack of objects at given position or on top of given object (eg. table).

	Parameter(s):
	0: _positionASL:array				- ASL position where the objects will be spawned

	0: [
		_anchorObject:object,			  - anchor object (eg. table) defining where the objects will be spawned
	 	_anchorPlacement:string (default = "TOP") - anchor placement definition, valid values are "BOTTOM","TOP","GROUND"
	 							"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
	   ]

	1: _className:string				- class of the objects; all need to have same class
	2: _count:scalar (default = 1)			- number of the object; if > 1 object will be spawned of top of each other
	3: _offsetMatrix:array (default = [0,0,0])	- starting spawning position offset
	4: _offsetDir:scalar (default = 0)		- starting spawning direction offset
	5: _dirNoise:code (default = {0})		- spawned object direction delta from the starting direction, defined as code returning dir delta value
	6: _enableSimulation:bool (default = false)	- shall the simulation of the spawned objects be enabled or not?

	Returns:
	array of created objects

	Example:
	_objects = [_position:array,_className:string,_count:scalar,_offsetMatrix:array,_offsetDir:scalar,_dirNoise:code,_enableSimulation:bool] call BIS_fnc_spawnObjects;
	_objects = [[_table,"TOP"],"Box_NATO_Wps_F",1,[(random 0.2)-0.1,(random 0.2)-0.1,0],(random 20)-10] call BIS_fnc_spawnObjects;
*/

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Example 1:
Example needed
See also:
See also needed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Advertisement