ACE3/addons/weather/functions/fnc_calculateSpeedOfSound.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

19 lines
349 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Ruthberg
* Calculates the speed of sound for a given temperature
*
* Arguments:
* temperature - degrees celsius <NUMBER>
*
* Return Value:
* speed of sound - m/s <NUMBER>
*
* Example:
* 0 call ace_weather_fnc_calculateSpeedOfSound
*
* Public: No
*/
(331.3 * sqrt(1 + (_this / 273.15)))