From c055d44dcdb87e8db49fb23e632fc086aa44cce6 Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:53:22 +0300 Subject: init --- Common/Functions/Common_GetTotalSupplyValue.sqf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Common/Functions/Common_GetTotalSupplyValue.sqf (limited to 'Common/Functions/Common_GetTotalSupplyValue.sqf') diff --git a/Common/Functions/Common_GetTotalSupplyValue.sqf b/Common/Functions/Common_GetTotalSupplyValue.sqf new file mode 100644 index 0000000..2504011 --- /dev/null +++ b/Common/Functions/Common_GetTotalSupplyValue.sqf @@ -0,0 +1,13 @@ +Private["_side","_sideID","_totalSupply"]; + +_side = _this; +_sideID = _side Call GetSideID; +_totalSupply = 0; + +{ + if ((_x getVariable "sideID") == _sideID) then { + _totalSupply = _totalSupply + (_x getVariable "supplyValue"); + }; +} forEach towns; + +_totalSupply \ No newline at end of file -- cgit v1.3.1