ACE3/addons/atragmx/functions/fnc_update_target.sqf
2015-04-10 16:48:58 +02:00

23 lines
717 B
Plaintext

#include "script_component.hpp"
if (!isNil QUOTE(GVAR(windSpeed))) then
{
ctrlSetText [300, Str(Round((GVAR(windSpeed) select GVAR(currentTarget)) * 100) / 100)];
};
if (!isNil QUOTE(GVAR(windDirection))) then
{
ctrlSetText [310, Str(Round((GVAR(windDirection) select GVAR(currentTarget))))];
};
if (!isNil QUOTE(GVAR(inclinationAngle))) then
{
ctrlSetText [320, Str(Round((GVAR(inclinationAngle) select GVAR(currentTarget))))];
};
if (!isNil QUOTE(GVAR(targetSpeed))) then
{
ctrlSetText [330, Str(Round((GVAR(targetSpeed) select GVAR(currentTarget)) * 100) / 100)];
};
if (!isNil QUOTE(GVAR(targetRange))) then
{
ctrlSetText [340, Str(Round((GVAR(targetRange) select GVAR(currentTarget))))];
};