ACE3/addons/common/functions/fnc_getWindDirection.sqf
Phyma ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00

37 lines
622 B
Plaintext

/*
* Author: commy2
* Get the compass direction the wind is blowing from.
*
* Arguments:
* None
*
* Return Value:
* Wind cardinal direction <STRING>
*
* Example:
* [] call ace_common_fnc_getWindDirection
*
* Public: Yes
*/
#include "script_component.hpp"
localize ([
LSTRING(S),
LSTRING(SSW),
LSTRING(SW),
LSTRING(WSW),
LSTRING(W),
LSTRING(WNW),
LSTRING(NW),
LSTRING(NNW),
LSTRING(N),
LSTRING(NNE),
LSTRING(NE),
LSTRING(ENE),
LSTRING(E),
LSTRING(ESE),
LSTRING(SE),
LSTRING(SSE),
LSTRING(S)
] select (round (windDir / 360 * 16))) // return