insideBuilding

From Bohemia Interactive Community
Revision as of 20:40, 28 January 2023 by Killzone Kid (talk | contribs)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.12.

Description

Description:
Returns how much a man is inside a building. The value is the same as normally returned by weapons/ammo sound controller "interior". Fun fact: the sound is considered internal when corresponding surface name starts with "int_". Therefore object placed inside building that does not have model CfgSurface 'soundEviron' param looking like "int_xxxx", would generate external sound inside the building, and insideBuilding on top of this object would return 0.
Groups:
Object Manipulation

Syntax

Syntax:
insideBuilding man
Parameters:
man: Object - entity of class Man
Return Value:
Number - in range 0...1, where 0-outside, 1-inside

Examples

Example 1:
_inside = insideBuilding player;

Additional Information

See also:
buildingPos buildingExit BIS_fnc_buildingPositions

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