enEnvironment manages the environment.
| Name | Returns | Parameters | Description |
|---|---|---|---|
| enEnvironment_AmbientLight(...) | float | vector position | Gets the ambient light on a 0.0 to 1.0 scale at a given region-scope position. By default, ~0.85 is the threshold for the sun being "up". |
| enEnvironment_AmbientLightHere() | float | n/a | Gets the ambient light on a 0.0 to 1.0 scale at the script's current position. By default, ~0.85 is the threshold for the sun being "up". |
| enEnvironment_SunHeight(...) | float | vector position | Gets the height of the sun relative to the horizon (-1.0 to 1.0) at a given region-scope position. |
| enEnvironment_SunHeightHere() | float | n/a | Gets the height of the sun relative to the horizon (-1.0 to 1.0) at the script's current position. |
| Name | Required Value | Description |
|---|---|---|
| TRACE_ENENVIRONMENT | n/a | Enables trace logging (not used). |
enEnvironment calls no callback functions.
enEnvironment has no constants or flags.