ACE3/addons/atragmx/functions/fnc_update_target.sqf

23 lines
822 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
if (!isNil ("GVAR(ATragMX_windSpeed)")) then
{
2015-04-07 20:44:26 +00:00
ctrlSetText [300, Str(Round((GVAR(ATragMX_windSpeed) select GVAR(ATragMX_currentTarget)) * 100) / 100)];
};
if (!isNil ("GVAR(ATragMX_windDirection)")) then
{
2015-04-07 20:44:26 +00:00
ctrlSetText [310, Str(Round((GVAR(ATragMX_windDirection) select GVAR(ATragMX_currentTarget))))];
};
if (!isNil ("GVAR(ATragMX_inclinationAngle)")) then
{
2015-04-07 20:44:26 +00:00
ctrlSetText [320, Str(Round((GVAR(ATragMX_inclinationAngle) select GVAR(ATragMX_currentTarget))))];
};
if (!isNil ("GVAR(ATragMX_targetSpeed)")) then
{
2015-04-07 20:44:26 +00:00
ctrlSetText [330, Str(Round((GVAR(ATragMX_targetSpeed) select GVAR(ATragMX_currentTarget)) * 100) / 100)];
};
if (!isNil ("GVAR(ATragMX_targetRange)")) then
{
2015-04-07 20:44:26 +00:00
ctrlSetText [340, Str(Round((GVAR(ATragMX_targetRange) select GVAR(ATragMX_currentTarget))))];
};