2015-01-20 23:18:40 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
FUNC(KEEPTIME) = {
|
2015-04-06 16:22:43 +00:00
|
|
|
if((count GVAR(WINDSPEED)) > 0) then {
|
|
|
|
private ["_wind", "_p", "_str"];
|
|
|
|
_wind = ACE_wind;
|
2015-01-20 23:18:40 +00:00
|
|
|
|
2015-04-06 16:22:43 +00:00
|
|
|
_p = _wind call CBA_fnc_vect2polar;
|
|
|
|
_str = format["Wind: %1 at %2m/s (%3MPH)\n%4", floor(_p select 1), floor(_p select 0), floor((_p select 0)*2.23693629), GVAR(WINDSPEED)];
|
|
|
|
TRACE_2("Wind",_wind,_str);
|
|
|
|
};
|
2015-01-20 23:18:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef DEBUG_MODE_FULL
|
2015-04-06 16:22:43 +00:00
|
|
|
[FUNC(KEEPTIME), 0.0, []] call CBA_fnc_addPerFrameHandler;
|
2015-01-20 23:18:40 +00:00
|
|
|
#endif
|