environmentEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Some wiki formatting)
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.68


|1.68|= Game version
|gr1= Environment
____________________________________________________________________________________________


| Returns status of [[enableEnvironment]] command |DESCRIPTION=
|gr2= Sounds
____________________________________________________________________________________________


| '''environmentEnabled'''  |SYNTAX=
|descr= Returns status of [[enableEnvironment]] command


| [[Array]] in format [ambientLife, ambientSound] where:
|s1= [[environmentEnabled]]
 
|r1= [[Array]] in format [ambientLife, ambientSound, windyCoef] where:
* ambientLife: [[Boolean]]  
* ambientLife: [[Boolean]]  
* ambientSound: [[Boolean]] |=
* ambientSound: [[Boolean]]
____________________________________________________________________________________________
* {{GVI|arma3|2.12|size= 0.75}} windyCoef: [[Number]] - see [[enableEnvironment]]
 
|x1= <code>_enabled = [[environmentEnabled]];</code>  |EXAMPLE1=
____________________________________________________________________________________________


| [[enableEnvironment]], [[initAmbientLife]], [[sideAmbientLife]], [[getAllEnvSoundControllers]], [[getEnvSoundController]], [[setSoundEffect]]|SEEALSO=
|x1= <sqf>private _enabled = environmentEnabled;</sqf>


|seealso= [[enableEnvironment]] [[fadeEnvironment]] [[environmentVolume]] [[initAmbientLife]] [[sideAmbientLife]] [[getAllEnvSoundControllers]] [[getEnvSoundController]] [[setSoundEffect]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|ENABLEENVIRONMENT]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 16:32, 17 April 2023

Hover & click on the images for description

Description

Description:
Returns status of enableEnvironment command
Groups:
EnvironmentSounds

Syntax

Syntax:
environmentEnabled
Return Value:
Array in format [ambientLife, ambientSound, windyCoef] where:

Examples

Example 1:
private _enabled = environmentEnabled;

Additional Information

See also:
enableEnvironment fadeEnvironment environmentVolume initAmbientLife sideAmbientLife getAllEnvSoundControllers getEnvSoundController setSoundEffect

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