|
|
Line 1: |
Line 1: |
| {{Function|= Comments
| | #REDIRECT [[BIS_fnc_objectsGrabber]] |
| ____________________________________________________________________________________________
| |
| | |
| | arma2 |= Game name
| |
| | |
| |1.00|= Game version
| |
| ____________________________________________________________________________________________
| |
| | |
| | Converts a set of placed objects to an object array ('''as a [[String]]''') for the [[BIS_fnc_ObjectsMapper|DynO mapper]].<br />
| |
| Format is the following. First, the header:
| |
| <code>{{codecomment|/*
| |
| Grab data:
| |
| Mission: TheMissionName
| |
| World: Stratis
| |
| Anchor position: [3781.59, 3289.67]
| |
| Area size: 50
| |
| Using orientation of objects: yes/no
| |
| <nowiki>*/</nowiki>}}</code>
| |
| | |
| Then, data:
| |
| <code>[
| |
| ["B_UAV_01_F",[-5.23706,-0.183594,-0.00126648],167.39,1,0,[0.605018,-0.575293],"","",true,false],
| |
| ["C_Offroad_01_F",[-4.25903,4.62158,0.0630951],224.14,1,0,[0.812812,0.190543],"","",true,false]
| |
| ]</code>
| |
| | |
| or, if object orientation is not used:
| |
| <code>[
| |
| ["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]
| |
| ]</code> |= Description
| |
| ____________________________________________________________________________________________
| |
| | |
| | [position, size, objectOrientation] call [[BIS_fnc_ObjectsGrabber]] |= Syntax
| |
| | |
| |p1= position: [[Position]] - (Optional, default [0,0]) 2D or 3D position, center of the "grabbing" area |= Parameter 1
| |
| | |
| |p2= size: [[Number]] - (Optional, default 50) size (radius) of the "grabbing" area |= Parameter 2
| |
| | |
| |p3= objectOrientation: [[Boolean]] - (Optional, default [[false]]) capture object orientation or not. Format [[BIS_fnc_getPitchBank]] |= Parameter 3
| |
| | |
| | [[String]] |= Return value
| |
| ____________________________________________________________________________________________
| |
| | |
| |x1= <code><nowiki>[</nowiki>[[getPos]] [[player]], 20, [[true]]] [[call]] [[BIS_fnc_ObjectsGrabber]];</code> |= Example 1
| |
| ____________________________________________________________________________________________
| |
| | |
| | [[BIS_fnc_ObjectsMapper]], [[BIS_fnc_getPitchBank]], [[BIS_fnc_setPitchBank]] |= See also
| |
| }}
| |
| | |
| <h3 style="display:none">Notes</h3>
| |
| <dl class="command_description">
| |
| <!-- Note Section BEGIN -->
| |
| | |
| <!-- Note Section END -->
| |
| </dl>
| |
| | |
| <h3 style="display:none">Bottom Section</h3>
| |
| [[Category:Function Group: Spawning|{{uc:ObjectsGrabber}}]]
| |
| [[Category:Functions|{{uc:ObjectsGrabber}}]]
| |
| [[Category:{{Name|arma2}}: Functions|{{uc:ObjectsGrabber}}]]
| |
| [[Category:{{Name|arma2oa}}: Functions|{{uc:ObjectsGrabber}}]]
| |
| [[Category:{{Name|tkoh}}: Functions|{{uc:ObjectsGrabber}}]]
| |
| [[Category:{{Name|arma3}}: Functions|{{uc:ObjectsGrabber}}]]
| |