BIS fnc getObjectBBD: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
| Get object [[boundingBoxReal]] max values and store them with [[setVariable]] ["BIS_EGSpectator_objectBBD", [maxWidth, maxLength, maxHeight]] for later calls. | | Get object [[boundingBoxReal]] max values and store them with [[setVariable]] ["BIS_EGSpectator_objectBBD", [maxWidth, maxLength, maxHeight]] for later calls. | ||
| [object] call [[BIS_fnc_getObjectBBD]] | | [object] call [[BIS_fnc_getObjectBBD]] | ||
|p1= object: [[Object]] - object to measure | |p1= object: [[Object]] - object to measure | ||
| [[Array]] to format [maxWidth, maxLength, maxHeight] | | [[Array]] to format [maxWidth, maxLength, maxHeight] | ||
|x1= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code> | |x1= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code> | ||
|x2= <code><nowiki>[</nowiki>[[vehicle]] [[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code> | |x2= <code><nowiki>[</nowiki>[[vehicle]] [[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code> | ||
| [[boundingBox]], [[boundingBoxReal]], [[sizeOf]] | | [[boundingBox]], [[boundingBoxReal]], [[sizeOf]] | ||
}} | }} |
Revision as of 23:01, 17 January 2021
Description
- Description:
- Get object boundingBoxReal max values and store them with setVariable ["BIS_EGSpectator_objectBBD", [maxWidth, maxLength, maxHeight]] for later calls.
- Execution:
- call
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [object] call BIS_fnc_getObjectBBD
- Parameters:
- object: Object - object to measure
- Return Value:
- Array to format [maxWidth, maxLength, maxHeight]
Examples
- Example 1:
[player] call BIS_fnc_getObjectBBD;
- Example 2:
[vehicle player] call BIS_fnc_getObjectBBD;
Additional Information
- See also:
- boundingBoxboundingBoxRealsizeOf
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