Fandom

武装突袭 Wiki

BIS_fnc_spawnObjects

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 分享

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

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:</dt>
Example needed</dd>
See also:</dt>

See also needed</dd>

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

更多维基

随机维基