{"name":"insideBuilding","title":"insideBuilding","type":"command","url":"https://community.bistudio.com/wiki/insideBuilding","revid":338343,"updated":"2023-02-28T14:42:06Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.12"},"since":"arma3 2.12","arma3_since":"2.12","description":"Returns how much a man is inside a building. The value is the same as normally returned by weapons/ammo sound controller \"interior\".\nIt is possible to modify an individual object to use sound interior with enableAudioFeature.\n\n> [!NOTE]\n> The sound is considered internal when the corresponding surface sound name starts with \"int_\".\n> 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.","syntaxes":[{"syntax":"insideBuilding man","params":[{"name":"man","type":"Object","description":"entity of class Man","type_expr":"Object"}],"returns":{"type":"Number","type_expr":"Number","description":"in range 0..1, where 0 is outside, 1 is inside"},"form":"unary","right":{"text":"man"}}],"examples":[{"code":["private _isFullyInside = insideBuilding player == 1;"]}],"see_also":["buildingPos","buildingExit","enableAudioFeature","BIS_fnc_buildingPositions"]}