BIS fnc objectsGrabber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Converts a set of placed objects within a specified area, to an object array for use with the DynO mapper. The information is copied to the clipboard and returned via [[call]]. |= Description
File: objectGrabber.sqf
Author: Joris-Jan van 't Land
 
Description:
Converts a set of placed objects to an object array for the DynO mapper.
Places this information in the debug output for processing.
 
Parameter(s):
_this select 0: position of the anchor point (Array)
_this select 1: size of the covered area (Scalar)
_this select 2: grab object orientation? (Boolean) [default: false]
Returns:
Ouput text (String)
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_sortBy]]; --> |= Syntax
| <!-- [position, radius, (getDir)] call [[BIS_fnc_objectsGrabber]]; --> |= Syntax


|p1= |= Parameter 1
|p1= '''Anchor''': [[Array]] - Position of center. |=
|p2= '''Radius''': [[Scalar]] - Size of area. |=
|p3= '''getDir''': [[Boolean]] - (optional) grab direction of objects. |=


| |= Return value
| [[string]] - Output text used as parameter for [[BIS_fnc_objectsGrabber]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[getPos player, 200, true] [[call]] [[BIS_fnc_objectsGrabber]]</code> |=
|x1= <code>[getPos player, 200, true] [[call]] [[BIS_fnc_objectsGrabber]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:42, 4 October 2014


Hover & click on the images for description

Description

Description:
Converts a set of placed objects within a specified area, to an object array for use with the DynO mapper. The information is copied to the clipboard and returned via call.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Parameters:
Anchor: Array - Position of center.
Radius: Scalar - Size of area.
getDir: Boolean - (optional) grab direction of objects.
Return Value:
string - Output text used as parameter for BIS_fnc_objectsGrabber

Examples

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

Additional Information

See also:
BIS_fnc_ObjectsMapper

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

Notes

Bottom Section