ACE3/addons/atragmx/functions/fnc_update_target.sqf
2015-04-08 11:05:28 +02:00

23 lines
702 B
Plaintext

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