BIS fnc objectHeight: Difference between revisions

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


| arma 3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Object Manipulation
____________________________________________________________________________________________


| Return object height defined by it's bounding box and ev. offset/fix. |DESCRIPTION=
|descr= Return object height defined by its bounding box and eventual offset fix. For the following classes an offset is used.
____________________________________________________________________________________________


| object call [[BIS_fnc_objectHeight]] |SYNTAX=
{{{!}} 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"
{{!}}}


|p1= object: [[Object]] - Evaluated object|PARAMETER1=
|s1= object call [[BIS_fnc_objectHeight]]
____________________________________________________________________________________________


| [[Number]] - Height of the object|RETURNVALUE=
|p1= object: [[Object]] - evaluated object
____________________________________________________________________________________________


|x1= <code>[[player]] [[call]] [[BIS_fnc_objectHeight]];</code> |=
|r1= [[Number]] - height of the object
____________________________________________________________________________________________


| [[boundingBox]], [[sizeOf]], [[boundingBoxReal]], [[boundingCenter]] |SEEALSO=
|x1= <sqf>player call BIS_fnc_objectHeight;</sqf>
 
|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 15: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