BIS_fnc_spawnObjects

From Bohemia Interactive Community
Revision as of 18:42, 3 April 2006 by BIS fnc exportFunctionsToWiki (talk) (Generated by BIS_fnc_exportFunctionsToWiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description

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)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

Additional Information

See also:
See also needed

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

Notes

Bottom Section