BIS fnc drawBoundingBox: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 10: | Line 10: | ||
|s1= [objects, color, draw] call [[BIS_fnc_drawBoundingBox]] | |s1= [objects, color, draw] call [[BIS_fnc_drawBoundingBox]] | ||
|p1= objects: [[Array]] - (Optional, default | |p1= objects: [[Array]] - (Optional, default <sqf inline>[objNull]</sqf>) [[Array]] of [[Object]]s | ||
|p2= color: [[Array]] - (Optional, default [1,0,1,1]) | |p2= color: [[Array]] in format [[Color|Color (RGBA)]] - (Optional, default [1,0,1,1]) | ||
|p3= draw: [[Boolean]] - (Optional, default nil) [[true]] to draw, [[false]] to remove | |p3= draw: [[Boolean]] - (Optional, default nil) [[true]] to draw, [[false]] to remove | ||
Line 18: | Line 18: | ||
|r1= [[Boolean]] - [[true]] is successful, [[false]] if not | |r1= [[Boolean]] - [[true]] is successful, [[false]] if not | ||
|x1= < | |x1= <sqf>[[BIS_building], [1,0,1,1], true] call BIS_fnc_drawBoundingBox;</sqf> | ||
|x2= < | |x2= <sqf>[[], [], false] call BIS_fnc_drawBoundingBox;</sqf> | ||
|seealso= [[boundingBoxReal]] [[boundingBox]] | |seealso= [[boundingBoxReal]] [[boundingBox]] | ||
}} | }} |
Latest revision as of 16:01, 13 July 2022
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:
- Example 2:
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