BIS fnc getObjectBBD: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
m (Some wiki formatting)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
|descr= Get object [[boundingBoxReal]] max values and store them with [[setVariable]] ["BIS_EGSpectator_objectBBD", [maxWidth, maxLength, maxHeight]] for later calls.
|descr= Get object [[boundingBoxReal]] max values and store them with [[setVariable]] ["BIS_EGSpectator_objectBBD", [maxWidth, maxLength, maxHeight]] for later calls.


|s1=[object] call [[BIS_fnc_getObjectBBD]]
|s1= [object] call [[BIS_fnc_getObjectBBD]]


|p1= object: [[Object]] - object to measure
|p1= object: [[Object]] - object to measure
Line 14: Line 14:
|r1= [[Array]] to format [maxWidth, maxLength, maxHeight]
|r1= [[Array]] to format [maxWidth, maxLength, maxHeight]


|x1= <code><nowiki>[</nowiki>[[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code>
|x1= <sqf>[player] call BIS_fnc_getObjectBBD;</sqf>


|x2= <code><nowiki>[</nowiki>[[vehicle]] [[player]]] [[call]] [[BIS_fnc_getObjectBBD]];</code>
|x2= <sqf>[vehicle player] call BIS_fnc_getObjectBBD;</sqf>


|seealso= [[boundingBox]] [[boundingBoxReal]] [[sizeOf]]
|seealso= [[boundingBox]] [[boundingBoxReal]] [[sizeOf]]
}}
}}

Latest revision as of 14:13, 13 July 2022

Hover & click on the images for description

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:
boundingBox boundingBoxReal sizeOf

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