From Bohemia Interactive Community
Revision as of 19:05, 12 May 2023 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description


Sets custom eye accommodation camera aperture.
If HDR is enabled, when setAperture value is used it also forces setApertureNew to the following values: [value, value, value, 1]. Execute setApertureNew after setAperture to override this default mechanic.
The aperture is set to default by the engine at the mission start. If you set it before the mission started it will reset like it never happened. Make sure you set it at the right time (see Example 2).
Camera ControlLights


setAperture aperture
aperture: Number - aperture value; a value <= 0 will set the aperture automatically. Maximum value which has an effect seems to be 100.
Return Value:


Example 1:
setAperture 0.3;
Example 2:
0 spawn { sleep 0.1; setAperture 100 };

Additional Information

See also:
setApertureNew apertureParams


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
Namikaze - c
Posted on Mar 17, 2009 - 19:43 (UTC)
The aperture value to simulate typical daylight (outdoor) conditions is 50. The aperture value to simulate typical daylight (indoor) conditions is 30. Setting the value to less than 20 will result in a very bright scene, suitable for night conditions. The closer the number is to 0, the more light will be let into the lens, to carry on the aperture metaphor. Different lighting/weather conditions can change the actual indoor and outdoor aperture values. Experiment and test to be sure.