BIS fnc spawnObjects: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 36: | Line 36: | ||
_objects = [<nowiki/>[_table, "TOP"], "Box_NATO_Wps_F", 3, _randomPos,([[random]] 20)-10] [[call]] [[BIS_fnc_spawnObjects]];</code> | _objects = [<nowiki/>[_table, "TOP"], "Box_NATO_Wps_F", 3, _randomPos,([[random]] 20)-10] [[call]] [[BIS_fnc_spawnObjects]];</code> | ||
| [[createVehicle]], [[createSimpleObject]], [[enableSimulation]] | |seealso= [[createVehicle]], [[createSimpleObject]], [[enableSimulation]] | ||
}} | }} | ||
Revision as of 00:36, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- position: PositionASL, or Array as [referenceObject, placement]
- 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:
- Return value needed
Examples
- Example 1:
_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;
Additional Information
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