ACE3/addons/weather/functions/fnc_calculateOxygenDensity.sqf

21 lines
440 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* Author: Brett Mayson
* Calculates the oxygen density
*
* Arguments:
* 0: Temperature - °C <NUMBER>
* 1: Pressure - hPa <NUMBER>
* 2: Relative humidity - value between 0.0 and 1.0 <NUMBER>
*
* Return Value:
* Density of oxygen - kg * m^(-3) <NUMBER>
*
* Example:
* [0, 1020] call ace_weather_fnc_calculateOxygenDensity
*
* Public: No
*/
(_this call FUNC(calculateAirDensity)) * 0.21