fogParams: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - " {3,}\|" to "  |") | Lou Montana (talk | contribs)  m (Some wiki formatting) | ||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| {{ | {{RV|type=command | ||
| | arma3 | |game1= arma3 | ||
| |version1= 1.00 | |||
| |1.00 | |||
| |gr1= Environment | |gr1= Environment | ||
| | A getter for [[setFog]] (Alt Syntax). Returns extended params for the fog | |descr= A getter for [[setFog]] (Alt Syntax). Returns extended params for the fog | ||
| |  | |s1= [[fogParams]] | ||
| | [[Array]] - in  | |r1= [[Array]] of [[Number]]s - in [[setFog]] format: [fogValue, fogDecay, fogBase] | ||
| |x1= < | |x1= <sqf>private _fog = fogParams;</sqf> | ||
| |seealso= [[setFog]] [[fog]] [[fogForecast]] [[rainParams]] | |||
| }} | }} | ||
| {{Note | |||
| |user= POLPOX | |||
| |timestamp= 20230923065153 | |||
| |text= To return a position (ASL Height)'s approx. fog level | |||
| <sqf> | |||
| private _getFogPowerASL = { | |||
| 	fogParams params ["_fogPower","_fogDecay","_fogHeight"] ; | |||
| 	private _height = _this - _fogHeight; | |||
| 	(_fogPower * 0.5 ^ (_height * _fogDecay / 2.45) max 0) | |||
| }; | |||
| [ | (AGLToASL (positionCameraToWorld [0,0,0]) # 2) call _getFogPowerASL; | ||
| </sqf> | |||
| Note that, this could return >1 value if fogDecay is not 0. | |||
| }} | |||
Latest revision as of 12:39, 12 March 2024
Description
- Description:
- A getter for setFog (Alt Syntax). Returns extended params for the fog
- Groups:
- Environment
Syntax
Examples
- Example 1:
Additional Information
- See also:
- setFog fog fogForecast rainParams
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
- Posted on Sep 23, 2023 - 06:51 (UTC)
- To return a position (ASL Height)'s approx. fog level Note that, this could return >1 value if fogDecay is not 0.
 
	