BIS fnc objectsMapper: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Lou Montana moved page BIS fnc ObjectsMapper to BIS fnc objectsMapper: bad capitalisation) |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Takes an array of data about a dynamic object template and creates the objects. |= Description | ||
Parameter(s): | Parameter(s): | ||
Line 22: | Line 17: | ||
Returns: | Returns: | ||
Created objects (Array) | Created objects (Array) | ||
____________________________________________________________________________________________ | |||
| [position, azimuth, objectsArray, badChance] call [[BIS_fnc_ObjectsMapper]] |= Syntax | |||
|p1= position: [[Position]] - (Optional, default [0,0]) |= Parameter 1 | |||
|p2= azimuth: [[Number]] - (Optional, default 0) the template orientation |= Parameter 2 | |||
| | |p3= objectsArray: [[Array]] - created with [[BIS_fnc_objectsGrabber]] |= Parameter 3 | ||
| | |p4= badChance: [[Number]] - (Optional, default 0) must be in range 0..1. Chances of object non-creation for each object |= Parameter 4 | ||
| |= Return value | | [[Array]] of [[Object|Objects]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>_objectsArray = [ | ||
["B_UAV_01_F",[-5.23706,-0.183594,-0.00126648],167.39,1,0,[],"","",true,false], | |||
["C_Offroad_01_F",[-4.25903,4.62158,0.0630951],224.14,1,0,[],"","",true,false] | |||
]; | |||
<nowiki>[</nowiki>[[getMarkerPos]] "myBase", 0, _objectsArray, 0.5] [[call]] [[BIS_fnc_objectsMapper]];</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[BIS_fnc_objectsGrabber]] |= See also | | [[BIS_fnc_objectsGrabber]] |= See also | ||
}} | }} | ||
Revision as of 21:46, 5 May 2018
Description
- Description:
- Takes an array of data about a dynamic object template and creates the objects.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [position, azimuth, objectsArray, badChance] call BIS_fnc_ObjectsMapper
- Parameters:
- position: Position - (Optional, default [0,0])
- azimuth: Number - (Optional, default 0) the template orientation
- objectsArray: Array - created with BIS_fnc_objectsGrabber
- badChance: Number - (Optional, default 0) must be in range 0..1. Chances of object non-creation for each object
- Return Value:
- Array of Objects
Examples
- Example 1:
_objectsArray = [ ["B_UAV_01_F",[-5.23706,-0.183594,-0.00126648],167.39,1,0,[],"","",true,false], ["C_Offroad_01_F",[-4.25903,4.62158,0.0630951],224.14,1,0,[],"","",true,false] ]; [getMarkerPos "myBase", 0, _objectsArray, 0.5] call BIS_fnc_objectsMapper;
Additional Information
- See also:
- BIS_fnc_objectsGrabber
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