BIS_fnc_drawBoundingBox

From Bohemia Interactive Community
Revision as of 16:52, 6 February 2021 by R3vo (talk | contribs) (Text replacement - " |exec= call " to " ")
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Hover & click on the images for description

Description

Description:
Draws bounding box around given objects.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[objects, color, draw] call BIS_fnc_drawBoundingBox
Parameters:
objects: Array - (Optional, default objNull) Array of Objects
color: Array - (Optional, default [1,0,1,1]) Array in format [R,G,B,A]
draw: Boolean - (Optional, default nil) true to draw, false to remove
Return Value:
Boolean - true is successful, false if not

Examples

Example 1:
[[BIS_building], [1,0,1,1], true] call BIS_fnc_drawBoundingBox;
Example 2:
[[], [], false] call BIS_fnc_drawBoundingBox;

Additional Information

See also:
boundingBoxReal boundingBox

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