{"name":"insideBuilding","operator":null,"title":"insideBuilding","type":"command","url":"https://community.bistudio.com/wiki/insideBuilding","revid":338343,"updated":"2023-02-28T14:42:06Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.12"}],"since":{"game":"arma3","name":"Arma 3","version":"2.12"},"arma3_since":"2.12","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"man","type":"Object","optional":false,"default":null,"description":"entity of class Man","types":["Object"],"since":null,"text":"man: Object - entity of class Man"}],"returns":{"type":"Number","types":["Number"],"description":"in range 0..1, where 0 is outside, 1 is inside","text":"Number - in range 0..1, where 0 is outside, 1 is inside"},"form":"unary","operator":null,"left":null,"right":{"text":"man","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _isFullyInside = insideBuilding player == 1;\n```","code":["private _isFullyInside = insideBuilding player == 1;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["buildingPos","buildingExit","enableAudioFeature","BIS_fnc_buildingPositions"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.12","Scripting Commands"]}