enableEnvironment: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{Inline code|" to "{{ic|") |
(formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma1 | |game1= arma1 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2 | |||
|version2= 1.00 | |||
|game3= arma2oa | |||
|version3= 1.51 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|gr1= Environment | |gr1= Environment | ||
Line 9: | Line 25: | ||
|eff= local | |eff= local | ||
| Enable/disable environmental effects: ambient life and/or ambient sound. | |descr= Enable/disable environmental effects: ambient life and/or ambient sound. | ||
{{Feature | Informative | This command has to be executed after mission start: be sure to use e.g {{ic|[[ | {{Feature|Informative | This command has to be executed after mission start: be sure to use e.g {{ic|[[sleep]] 0.1;}} for it to take effect.}} | ||
| [[enableEnvironment]] | |s1= [[enableEnvironment]] enable | ||
|p1= | |p1= enable: [[Boolean]] - Ambient life and ambient sounds setting | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|s2= [[enableEnvironment]] [ambientLife, ambientSound] {{Since|arma3|1. | |s2= [[enableEnvironment]] [ambientLife, ambientSound] {{Since|arma3|1.68|y}} | ||
|p21= ambientLife: [[Boolean]] - | |p21= ambientLife: [[Boolean]] - Ambient life setting (bees, rabbits, birds, snakes, fish) | ||
|p22= ambientSound: [[Boolean]] - | |p22= ambientSound: [[Boolean]] - Ambient sounds setting (cicadas, owls, etc) | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
Line 33: | Line 49: | ||
|seealso= [[environmentEnabled]], [[fadeEnvironment]], [[environmentVolume]], [[initAmbientLife]], [[sideAmbientLife]], [[getAllEnvSoundControllers]], [[getEnvSoundController]], [[setSoundEffect]], [[Arma 3 Animals: Ambient System]] | |seealso= [[environmentEnabled]], [[fadeEnvironment]], [[environmentVolume]], [[initAmbientLife]], [[sideAmbientLife]], [[getAllEnvSoundControllers]], [[getEnvSoundController]], [[setSoundEffect]], [[Arma 3 Animals: Ambient System]] | ||
}} | }} | ||
Revision as of 13:48, 26 March 2021
Description
- Description:
- Enable/disable environmental effects: ambient life and/or ambient sound.
- Groups:
- Environment
Syntax
- Syntax:
- enableEnvironment enable
- Parameters:
- enable: Boolean - Ambient life and ambient sounds setting
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- enableEnvironment [ambientLife, ambientSound] Template:Since
- Parameters:
- ambientLife: Boolean - Ambient life setting (bees, rabbits, birds, snakes, fish)
- ambientSound: Boolean - Ambient sounds setting (cicadas, owls, etc)
- Return Value:
- Nothing
Examples
- Example 1:
enableEnvironment false; // identical to enableEnvironment [false, false]
- Example 2:
enableEnvironment [false, true];
Additional Information
- See also:
- environmentEnabledfadeEnvironmentenvironmentVolumeinitAmbientLifesideAmbientLifegetAllEnvSoundControllersgetEnvSoundControllersetSoundEffectArma 3 Animals: Ambient System
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Environment
- Scripting Commands: Local Effect