BIS fnc objectsMapper: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
Lou Montana (talk | contribs) (Fix description) |
||
Line 17: | Line 17: | ||
|descr= Takes an array of data about a dynamic object template and creates the objects. | |descr= Takes an array of data about a dynamic object template and creates the objects. | ||
|s1= [position, azimuth, objectsArray, badChance] call [[BIS_fnc_objectsMapper]] | |||
|p1= position: [[Array]] - (Optional, default [0,0]) in format [[Position|Position2D]] | |||
|p1= position: [[ | |||
|p2= azimuth: [[Number]] - (Optional, default 0) the template orientation | |p2= azimuth: [[Number]] - (Optional, default 0) the template orientation | ||
Line 34: | Line 25: | ||
|p3= objectsArray: [[Array]] - created with [[BIS_fnc_objectsGrabber]] | |p3= objectsArray: [[Array]] - created with [[BIS_fnc_objectsGrabber]] | ||
|p4= badChance: [[Number]] - (Optional, default 0) | |p4= badChance: [[Number]] - (Optional, default 0) Chances of object non-creation for each object, in range 0..1 | ||
|r1= [[Array]] of [[Object|Objects]] | |r1= [[Array]] of [[Object|Objects]] | ||
Line 42: | Line 33: | ||
["C_Offroad_01_F",[-4.25903,4.62158,0.0630951],224.14,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> | ||
|seealso= [[BIS_fnc_objectsGrabber]] | |seealso= [[BIS_fnc_objectsGrabber]] | ||
}} | }} |
Revision as of 15:02, 13 August 2021
Description
- Description:
- Takes an array of data about a dynamic object template and creates the objects.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [position, azimuth, objectsArray, badChance] call BIS_fnc_objectsMapper
- Parameters:
- position: Array - (Optional, default [0,0]) in format Position2D
- azimuth: Number - (Optional, default 0) the template orientation
- objectsArray: Array - created with BIS_fnc_objectsGrabber
- badChance: Number - (Optional, default 0) Chances of object non-creation for each object, in range 0..1
- 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