BIS fnc drawBoundingBox: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "^ {{Function\|Comments\=" to "{{Function|Comments=") |
m (page filled) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | |game1= arma3 | ||
| 1.98 | |version1= 1.98 | ||
| | <!--|serverExec= server--> | ||
<!--|arg= local--> | |||
<!--|eff= local--> | |||
|descr= Draws bounding box around given objects. | |||
| | |s1= [_objects, _color, _draw] call [[BIS_fnc_drawBoundingBox]] | ||
|p1= | | |p1= _objects: [[Array]] - (Optional, default [[objNull]]) [[Array]] of [[Object|Objects]] | ||
| | |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 | ||
| | | |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> | |||
|x2= <code>[<nowiki>[</nowiki>], [], [[false]]<nowiki>]</nowiki> [[call]] [[BIS_fnc_drawBoundingBox]];</code> | |||
|exec= call | |||
|seealso= [[boundingBoxReal]] [[boundingBox]] | |||
}} | |||
Revision as of 10:50, 4 June 2020
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