setAperture: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|eff= local | |eff= local | ||
|1.00 | |1.00 | ||
|gr1= Camera Control | |gr1= Camera Control | ||
| Sets custom camera aperture (-1 to do it automatically). | | Sets custom camera aperture (-1 to do it automatically). | ||
{{Important | 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)}} | {{Important | 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)}} | ||
| '''setAperture''' aperture | | '''setAperture''' aperture | ||
|p1= aperture: [[Number]] | |p1= aperture: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[[setAperture]] 0.3;</code> | |x1= <code>[[setAperture]] 0.3;</code> | ||
|x2= <code>[] [[spawn]] { [[waitUntil]] { [[time]] > 0.1 }; [[setAperture]] 100 };</code> | |x2= <code>[] [[spawn]] { [[waitUntil]] { [[time]] > 0.1 }; [[setAperture]] 100 };</code> | ||
| [[setApertureNew]] | | [[setApertureNew]] | ||
}} | }} |
Revision as of 11:01, 18 January 2021
Description
- Description:
- Sets custom camera aperture (-1 to do it automatically).
- Groups:
- Camera Control
Syntax
Examples
- Example 1:
setAperture 0.3;
- Example 2:
[] spawn { waitUntil { time > 0.1 }; setAperture 100 };
Additional Information
- See also:
- setApertureNew
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
Notes
- Namikaze
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Camera Control
- Scripting Commands: Local Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands