Environment - Effects – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|arma2\| +" to "{{GameCategory|arma2|")
m (Some wiki formatting)
Line 1: Line 1:
{{GameCategory|arma2|Editor Modules}}
{{TOC|side}}
<span style="color:#CC0000;">'''ARMA 2: Operation Arrowhead ONLY'''</span>
{{Feature|arma2oa|Only available in {{arma2oa}}.}}
 


Module creates environmental effects such as dust, mist, snow and clouds. The effects depend on the time of the day and season (summer, winter etc).
Module creates environmental effects such as dust, mist, snow and clouds. The effects depend on the time of the day and season (summer, winter etc).




==Method used to determine current time of day==
== Method used to determine current time of day ==


_daytime = 0.5 - [[abs]]([[daytime]] - 12) / 12
_daytime = 0.5 - [[abs]] ([[daytime]] - 12) / 12


Commented by module maker: 0 = night, 1 = day, 0.5 = sunset/sunrise
Commented by module maker: 0 = night, 1 = day, 0.5 = sunset/sunrise


==Default requirements for specific effect to be enabled==
 
== Default requirements for specific effect to be enabled ==
 
* Snow
* Snow
** [[overcast]] > 0.35
** [[overcast]] > 0.35
Line 29: Line 30:
** altitude > 5, altitude [[player]]/player's [[vehicle]]'s Z-coordinate (height) measured with [[getPos]]
** altitude > 5, altitude [[player]]/player's [[vehicle]]'s Z-coordinate (height) measured with [[getPos]]


== Initialization==
 
== Initialization ==
 
=== Startup ===
=== Startup ===
''F7 > Environment - Effects''
''F7 > Environment - Effects''


=== Optional parameters ===
=== Optional parameters ===
====Set variables to module with desired values====


*'''intensity = <number>;''' - Intensity, range is probably from 0 to 1.
==== Set variables to module with desired values ====
::Example: ''this setvariable ["intensity",0.5];''
::Default value: 0.8


*'''delay = <number>;''' - Delay in seconds before effects are enabled.
* '''intensity = <number>;''' - Intensity, range is probably from 0 to 1.
::Example: ''this setvariable ["delay",30];''
:: Example: ''this setvariable ["intensity",0.5];''
::Default value: 1
:: Default value: 0.8


*'''particleEffects = <array>;''' - List of enabled effects. 0 = snow, 1 = dust, 2 = clouds and 3 = mist
* '''delay = <number>;''' - Delay in seconds before effects are enabled.
::Example: ''this setvariable ["particleEffects",[1,2]];''
:: Example: ''this setvariable ["delay",30];''
::Default value: [0,1,2,3]
:: Default value: 1


*'''center = <object>;''' - Object the effects will be center to.
* '''particleEffects = <array>;''' - List of enabled effects. 0 = snow, 1 = dust, 2 = clouds and 3 = mist
::Example: ''this setvariable ["object",player];''
:: Example: ''this setvariable ["particleEffects",[1,2]];''
::Default value: [[cameraOn]] (which usually means [[player]])
:: Default value: [0,1,2,3]
 
* '''center = <object>;''' - Object the effects will be center to.
:: Example: ''this setvariable ["object",player];''
:: Default value: [[cameraOn]] (which usually means [[player]])
 
 
{{GameCategory|arma2|Editor Modules}}

Revision as of 04:22, 1 January 2021

Arma 2: Operation Arrowhead
Only available in Arma 2: Operation Arrowhead.

Module creates environmental effects such as dust, mist, snow and clouds. The effects depend on the time of the day and season (summer, winter etc).


Method used to determine current time of day

_daytime = 0.5 - abs (daytime - 12) / 12

Commented by module maker: 0 = night, 1 = day, 0.5 = sunset/sunrise


Default requirements for specific effect to be enabled

  • Snow
    • overcast > 0.35
    • winter: November - February
  • Dust
    • not winter: March - September
    • overcast < 0.5
    • abs _daytime >= 0.1
  • Mist
    • abs _daytime < 0.1


Initialization

Startup

F7 > Environment - Effects

Optional parameters

Set variables to module with desired values

  • intensity = <number>; - Intensity, range is probably from 0 to 1.
Example: this setvariable ["intensity",0.5];
Default value: 0.8
  • delay = <number>; - Delay in seconds before effects are enabled.
Example: this setvariable ["delay",30];
Default value: 1
  • particleEffects = <array>; - List of enabled effects. 0 = snow, 1 = dust, 2 = clouds and 3 = mist
Example: this setvariable ["particleEffects",[1,2]];
Default value: [0,1,2,3]
  • center = <object>; - Object the effects will be center to.
Example: this setvariable ["object",player];
Default value: cameraOn (which usually means player)