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.
Note
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' soundEviron [sic] parameter named this way would generate external sound inside the building, and insideBuilding on top of this object would return 0.
Syntax
insideBuilding man
Parameters:
man: Object - entity of class Man
Returns: Number - in range 0..1, where 0 is outside, 1 is inside
Examples
Example 1
private _isFullyInside = insideBuilding player == 1;
See also
buildingPos · buildingExit · enableAudioFeature · BIS_fnc_buildingPositions