BIS fnc drawBoundingBox: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (remove _ from parameters)
m (Text replacement - "True" to "true")
Line 19: Line 19:
|p2= color: [[Array]] - (Optional, default [1,0,1,1]) [[Array]] in format [R,G,B,A]
|p2= color: [[Array]] - (Optional, default [1,0,1,1]) [[Array]] in format [R,G,B,A]


|p3= draw: [[Boolean]] - (Optional, default nil) [[True]] to draw, [[false]] to remove
|p3= draw: [[Boolean]] - (Optional, default nil) [[true]] to draw, [[false]] to remove


|r1= [[Boolean]] - [[True]] is successful, [[false]] if not
|r1= [[Boolean]] - [[true]] is successful, [[false]] if not


|x1= <code>[<nowiki>[</nowiki>BIS_building],  [1,0,1,1], [[true]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_drawBoundingBox]];</code>
|x1= <code>[<nowiki>[</nowiki>BIS_building],  [1,0,1,1], [[true]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_drawBoundingBox]];</code>

Revision as of 18:09, 26 December 2020

Hover & click on the images for description

Description

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

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