BIS fnc objectsGrabber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "\[\[BIS[ _]fnc[ _]O([^A-Z])" to "[[BIS_fnc_o$1")
Line 7: Line 7:
|gr1 = Object Manipulation
|gr1 = Object Manipulation


| Converts a set of placed objects to an object array ('''as a [[String]]''') for the [[BIS_fnc_ObjectsMapper|DynO mapper]].<br>
| 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:
Format is the following. First, the header:
<code>{{codecomment|/*
<code>{{codecomment|/*
Line 30: Line 30:
]</code>
]</code>


| [position, size, objectOrientation] call [[BIS_fnc_ObjectsGrabber]]
| [position, size, objectOrientation] call [[BIS_fnc_objectsGrabber]]


|p1= position: [[Position]] - (Optional, default [0,0]) 2D or 3D position, center of the "grabbing" area
|p1= position: [[Position]] - (Optional, default [0,0]) 2D or 3D position, center of the "grabbing" area
Line 40: Line 40:
| [[String]]
| [[String]]


|x1= <code><nowiki>[</nowiki>[[getPos]] [[player]], 20, [[true]]] [[call]] [[BIS_fnc_ObjectsGrabber]];</code>
|x1= <code><nowiki>[</nowiki>[[getPos]] [[player]], 20, [[true]]] [[call]] [[BIS_fnc_objectsGrabber]];</code>


| [[BIS_fnc_ObjectsMapper]], [[BIS_fnc_getPitchBank]], [[BIS_fnc_setPitchBank]]
| [[BIS_fnc_objectsMapper]], [[BIS_fnc_getPitchBank]], [[BIS_fnc_setPitchBank]]
}}
}}



Revision as of 01:20, 28 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
position: Position - (Optional, default [0,0]) 2D or 3D position, center of the "grabbing" area
size: Number - (Optional, default 50) size (radius) of the "grabbing" area
objectOrientation: Boolean - (Optional, default false) capture object orientation or not. Format BIS_fnc_getPitchBank
Return Value:
Return value needed

Examples

Example 1:
[getPos player, 20, true] call BIS_fnc_objectsGrabber;

Additional Information

See also:
See also needed

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