insideBuilding

From Bohemia Interactive Community
Revision as of 15:42, 28 February 2023 by Cat Harsis (talk | contribs) (2.12 released, no longer only dev branch)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

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". It is possible to modify an individual object to use sound interior with enableAudioFeature.
The sound is considered internal when the corresponding surface sound name starts with "int_". An object placed inside a building that does not have model CfgSurfaces' soundEvironsic parameter named this way 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 is outside, 1 is inside

Examples

Example 1:
private _isFullyInside = insideBuilding player == 1;

Additional Information

See also:
buildingPos buildingExit enableAudioFeature 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