From 90a906da918f884572ddcb116513d94b9debed90 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Mon, 25 Jul 2016 00:48:13 +0300 Subject: [PATCH] oops, forgot to add this, anyway, dist implementation --- helotraining_rewrite.Altis/getSideTasks.sqf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 helotraining_rewrite.Altis/getSideTasks.sqf diff --git a/helotraining_rewrite.Altis/getSideTasks.sqf b/helotraining_rewrite.Altis/getSideTasks.sqf new file mode 100644 index 0000000..5058be8 --- /dev/null +++ b/helotraining_rewrite.Altis/getSideTasks.sqf @@ -0,0 +1,16 @@ +diag_log format["getSideTasks called, _this: %1", _this]; +private _side = _this select 0; +private _returnValue = []; +{ + _unit = _x; + if (side _unit == _side) then + { + _tasks = _x call BIS_fnc_tasksUnit; + { + _returnValue pushBackUnique _x; + } foreach _tasks; + }; +} foreach allUnits; + +diag_log format["getSideTasks returning: %1", _returnValue]; +_returnValue \ No newline at end of file