insideBuilding: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.12 |gr1= Object Manipulation |descr= Returns how much a man is inside a building. The value is the same as normally returned by...") |
Cat Harsis (talk | contribs) m (2.12 released, no longer only dev branch) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|descr= Returns how much a man is inside a building. The value is the same as normally returned by weapons/ammo sound controller "interior". | |descr= 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]]. | |||
{{Feature|informative| | |||
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 {{hl|CfgSurfaces}}' {{sic|[[Config Properties Megalist#soundEviron|soundEviron]]}} parameter named this way would generate external sound inside the building, and [[insideBuilding]] on top of this object would return 0. | |||
}} | |||
|s1= [[insideBuilding]] man | |s1= [[insideBuilding]] man | ||
Line 12: | Line 18: | ||
|p1= man: [[Object]] - entity of class Man | |p1= man: [[Object]] - entity of class Man | ||
|r1= [[Number]] - in range 0 | |r1= [[Number]] - in range 0..1, where 0 is outside, 1 is inside | ||
|x1= <sqf> | |x1= <sqf>private _isFullyInside = insideBuilding player == 1;</sqf> | ||
|seealso= [[buildingPos]] [[buildingExit]] [[BIS_fnc_buildingPositions]] | |seealso= [[buildingPos]] [[buildingExit]] [[enableAudioFeature]] [[BIS_fnc_buildingPositions]] | ||
}} | }} |
Latest revision as of 15:42, 28 February 2023
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.
- 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:
Additional Information
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