enableEnvironment

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Enable/disable environmental effects: ambient life and/or ambient sound.

Syntax

Syntax:
enableEnvironment enabled
Parameters:
enabled: Boolean
Return Value:
Nothing

Alternative Syntax

Syntax:
enableEnvironment [ambientLife, ambientSound]         (Since Arma 3 v1.67)
Parameters:
[ambientLife, ambientSound]: Array
ambientLife: Boolean
ambientSound: Boolean
Return Value:
Nothing

Examples

Example 1:
enableEnvironment false;
Example 2:
enableEnvironment [false, true];

Additional Information

Multiplayer:
-
See also:
environmentEnabledinitAmbientLifesideAmbientLifegetAllEnvSoundControllersgetEnvSoundControllersetSoundEffect

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on 28 October, 2013
Killzone_Kid
This command has to be executed after mission start to have an effect. So if you add this command in init.sqf make sure you wait until mission is running: //init.sqf waitUntil {time > 0}; enableEnvironment false;

Bottom Section

Posted on October 23, 2017 - 16:54 (UTC)
Demellion
NOTE: Disabling ambient life will remove generation of anything that is coming from AmbientA3 map class (see Ambient System). That means removing not only bees and cicadas around a player, but rabbits, snakes, seagulls and all the fish in the sea.