BIS fnc drawBoundingBox: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported)
m (Some wiki formatting)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________
|version1= 1.98


| arma3 |Game name=
|gr1= Object Manipulation


| 1.98 |Game version=
|descr= Draws bounding box around given objects.
____________________________________________________________________________________________


| <pre>/*
|s1= [objects, color, draw] call [[BIS_fnc_drawBoundingBox]]
Description:
Draw bounding box around given objects


Parameter(s):
|p1= objects: [[Array]] - (Optional, default <sqf inline>[objNull]</sqf>) [[Array]] of [[Object]]s
_this select 0: ARRAY of objects
_this select 1: ARRAY in format of COLOR (R,G,B,A)  
_this select 2: BOOL  whether the function should draw or not
Returns:
Bool status


Example:  
|p2= color: [[Array]] in format [[Color|Color (RGBA)]] - (Optional, default [1,0,1,1])
[[BIS_building], [1,0,1,1], true] call bis_fnc_drawBoundingBox; to add
[[], [], false] call bis_fnc_drawBoundingBox; to remove
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |Description=
|p3= draw: [[Boolean]] - (Optional, default nil) [[true]] to draw, [[false]] to remove
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_drawBoundingBox]]; --> |Syntax=
|r1= [[Boolean]] - [[true]] is successful, [[false]] if not


|p1= |Parameter 1=
|x1= <sqf>[[BIS_building], [1,0,1,1], true] call BIS_fnc_drawBoundingBox;</sqf>


| |Return value=
|x2= <sqf>[[], [], false] call BIS_fnc_drawBoundingBox;</sqf>
____________________________________________________________________________________________


|x1= <code></code> |Example 1=
|seealso= [[boundingBoxReal]] [[boundingBox]]
____________________________________________________________________________________________
 
| |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: Systems|{{uc:drawBoundingBox}}]]

Latest revision as of 17:01, 13 July 2022

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 in format Color (RGBA) - (Optional, default [1,0,1,1])
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