BIS fnc objectHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *H([a-z ])" to "$1 - h$2")
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


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


| arma3 |= Game name
|gr1= Object Manipulation


|1.00|= Game version
|descr= Return object height defined by its bounding box and eventual offset fix. For the following classes an offset is used.
____________________________________________________________________________________________


| <pre>/*
{{{!}} class="wikitable"
{{!}}-
! z-offset: -0.1 !! z-offset: -0.08
{{!}}-
{{!}}
* "box_east_support_f"
* "box_ind_support_f"
* "box_nato_support_f"
* "box_east_ammoord_f"
* "box_ind_ammoord_f"
* "box_nato_ammoord_f"
* "box_east_ammo_f"
* "box_ind_ammo_f"
* "box_nato_ammo_f
{{!}}
* "box_east_wpslaunch_f"
* "box_ind_wpslaunch_f"
* "box_nato_wpslaunch_f"
* "box_east_wpsspecial_f"
* "box_ind_wpsspecial_f"
* "box_nato_wpsspecial_f"
* "box_ind_wps_f"
* "box_east_wps_f"
* "box_nato_wps_f"
{{!}}}


Description:
|s1= object call [[BIS_fnc_objectHeight]]
Return object height defined by it's bounding box and ev. offset/fix.


Parameter(s):
|p1= object: [[Object]] - evaluated object
_this:object - input/evaluated object


Returns:
|r1= [[Number]] - height of the object
_height:scalar - height of the evaluated object


Example:
|x1= <sqf>player call BIS_fnc_objectHeight;</sqf>
_height = _object call BIS_fnc_objectHeight;
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_objectHeight]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[boundingBox]] [[sizeOf]] [[boundingBoxReal]] [[boundingCenter]]
}}
}}
<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: Objects|{{uc:objectHeight}}]]
[[Category:Functions|{{uc:objectHeight}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:objectHeight}}]]

Latest revision as of 16:32, 8 November 2023

Hover & click on the images for description

Description

Description:
Return object height defined by its bounding box and eventual offset fix. For the following classes an offset is used.
z-offset: -0.1 z-offset: -0.08
  • "box_east_support_f"
  • "box_ind_support_f"
  • "box_nato_support_f"
  • "box_east_ammoord_f"
  • "box_ind_ammoord_f"
  • "box_nato_ammoord_f"
  • "box_east_ammo_f"
  • "box_ind_ammo_f"
  • "box_nato_ammo_f
  • "box_east_wpslaunch_f"
  • "box_ind_wpslaunch_f"
  • "box_nato_wpslaunch_f"
  • "box_east_wpsspecial_f"
  • "box_ind_wpsspecial_f"
  • "box_nato_wpsspecial_f"
  • "box_ind_wps_f"
  • "box_east_wps_f"
  • "box_nato_wps_f"
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
object call BIS_fnc_objectHeight
Parameters:
object: Object - evaluated object
Return Value:
Number - height of the object

Examples

Example 1:
player call BIS_fnc_objectHeight;

Additional Information

See also:
boundingBox sizeOf boundingBoxReal boundingCenter

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