From dee52083d359434fc3ac51a871c1b836d092d2ac Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:55:41 +0300 Subject: init --- Common/Functions/Common_GetFactories.sqf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Common/Functions/Common_GetFactories.sqf (limited to 'Common/Functions/Common_GetFactories.sqf') diff --git a/Common/Functions/Common_GetFactories.sqf b/Common/Functions/Common_GetFactories.sqf new file mode 100644 index 0000000..39c7ffc --- /dev/null +++ b/Common/Functions/Common_GetFactories.sqf @@ -0,0 +1,10 @@ +Private ["_buildings","_kind","_list","_side","_type"]; +_side = _this select 0; +_kind = _this select 1; +_buildings = _this select 2; + +_list = []; +_type = (Format["WFBE_%1STRUCTURENAMES",str _side] Call GetNamespace) select _kind; +{if (typeOf _x == _type && alive _x) then {_list = _list + [_x]}} forEach _buildings; + +_list \ No newline at end of file -- cgit v1.3.1