ACE3/addons/movement/functions/fnc_getWeight.sqf

17 lines
348 B
Plaintext
Raw Normal View History

2015-01-18 05:45:28 +00:00
// by commy2
#include "script_component.hpp"
private ["_unit", "_weight"];
_unit = _this select 0;
_weight = loadAbs _unit * 0.1;
2015-01-23 08:43:43 +00:00
if (GETGVAR(useImperial, 0) == 1) then {
2015-01-18 05:45:28 +00:00
_weight = format ["%1lb", (round (_weight * 100)) / 100];
} else {
_weight = format ["%1kg", (round (_weight * FACTOR_POUND_TO_KILOGRAMM * 100)) / 100];
};
_weight