mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
447 B
Plaintext
20 lines
447 B
Plaintext
// by commy2
|
|
|
|
private ["_unit", "_item", "_fuel", "_text"];
|
|
|
|
_unit = _this select 0;
|
|
_item = _this select 1;
|
|
|
|
if (isNil "_item") then {
|
|
_item = _unit getVariable "AGM_carriedItem";
|
|
};
|
|
if (isNil "_item") exitWith {};
|
|
|
|
_fuel = _item getVariable ["AGM_amountFuel", 20];
|
|
_fuel = (round (10 * _fuel)) / 10;
|
|
|
|
_unit playActionNow "Gear";
|
|
|
|
_text = format [localize "STR_AGM_Resupply_CheckedFuel", _fuel];
|
|
[_text] call AGM_Core_fnc_displayTextStructured;
|