insideBuilding: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Returns how much a man is inside a building. The value is the same as normally returned by weapons/ammo sound controller "interior". Fun fact: the sound is considered internal when corresponding surface sound name starts with "int_". Therefore object placed inside building that does not have model CfgSurfaces 'soundEviron' param looking like "int_xxxx", would generate external sound inside the building, and insideBuilding on top of this object would return 0. | |descr= Returns how much a man is inside a building. The value is the same as normally returned by weapons/ammo sound controller "interior". Fun fact: the sound is considered internal when corresponding surface sound name starts with "int_". Therefore object placed inside building that does not have model CfgSurfaces 'soundEviron' param looking like "int_xxxx", would generate external sound inside the building, and insideBuilding on top of this object would return 0. Since v2.14 it is possible to modify individual object to sound interrior with [[enableAudioFeature]] command. | ||
|s1= [[insideBuilding]] man | |s1= [[insideBuilding]] man | ||
Line 17: | Line 17: | ||
|x1= <sqf>_inside = insideBuilding player;</sqf> | |x1= <sqf>_inside = insideBuilding player;</sqf> | ||
|seealso= [[buildingPos]] [[buildingExit]] [[BIS_fnc_buildingPositions]] | |seealso= [[buildingPos]] [[buildingExit]] [[enableAudioFeature]] [[BIS_fnc_buildingPositions]] | ||
}} | }} |
Revision as of 21:45, 29 January 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". Fun fact: the sound is considered internal when corresponding surface sound name starts with "int_". Therefore object placed inside building that does not have model CfgSurfaces 'soundEviron' param looking like "int_xxxx", would generate external sound inside the building, and insideBuilding on top of this object would return 0. Since v2.14 it is possible to modify individual object to sound interrior with enableAudioFeature command.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- insideBuilding man
- Parameters:
- man: Object - entity of class Man
- Return Value:
- Number - in range 0...1, where 0-outside, 1-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