setApertureNew

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 0.50
  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:
Arma 3
Version:
0.50

Description

Description:
Sets custom camera aperture ([-1] to do it automatically).

Syntax

Syntax:
setApertureNew [min, std, max, stdLum]
Parameters:
[min, std, max, stdLum]: Array
min: Number
std: Number
max: Number
stdLum: Number
Return Value:
Nothing

Examples

Example 1:
setApertureNew [0.3, 0.2, 0.1, 1];
Example 2:
Simulate eye adjustment at night: setDate [2016, 8, 10, 4, 0]; setApertureNew [2, 8, 14, .9];
Example 3:
Narrower range for a subtler effect: setDate [2016, 8, 10, 4, 0]; setApertureNew [2, 5, 9, .8];

Additional Information

Multiplayer:
-
See also:
setAperture

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

Bottom Section

Posted on October 30, 2016 - 04:54 (UTC)
Tofof
Some notes on example 2 - try it outdoors on a piece of ground with high contrasting areas. I suggest the end of a runway, standing among the white painted triangles.

Look up about 60 degrees above the horizon and toggle between setApertureNew [2, 8, 14, .9]; and the default setting of setAperture -1;. There should be little change -- at least on the date in the example.

Reset again to setApertureNew [2, 8, 14, .9]; and then pan slowly down until you're basically looking at your feet. The less sky (the main outdoor light source) you see, the 'wider' (toward the 'min' number) the aperture will become. Looking at the ground on a runway, for example, you should be able to easily distinguish the painted white triangles from the unpainted pavement. Again, toggle back to the default aperture. The view should get much darker.

This setting allows for some natural adjustment based on the amount of visible light in the scene, and is highly encouraged over the default fixed aperature for night missions. When you're standing in the beam of a lighthouse, for example (try near the 'Spartan' on Stratis), you will be basically unable to see anything not illuminated by the beam. Once the beam passes and your vision returns to normal, your immediate surroundings will be dimmer, of course, but you'll be able to see further out.