BIS fnc objectHeight: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *H([a-z ])" to "$1 - h$2")
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.00


|1.00
|gr1= Object Manipulation


|gr1 = Object Manipulation
|descr= Return object height defined by its bounding box and eventual offset fix. For the following classes an offset is used.


| Return object height defined by it is bounding box and ev. offset/fix.
{{{!}} 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"
{{!}}}


| object call [[BIS_fnc_objectHeight]]
|s1= object call [[BIS_fnc_objectHeight]]


|p1= object: [[Object]] - Evaluated object
|p1= object: [[Object]] - evaluated object


| [[Number]] - Height of the object
|r1= [[Number]] - height of the object


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


| [[boundingBox]], [[sizeOf]], [[boundingBoxReal]], [[boundingCenter]]
|seealso= [[boundingBox]] [[sizeOf]] [[boundingBoxReal]] [[boundingCenter]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[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