2016-07-31 15:30:48 +00:00
|
|
|
diag_log format["getSideTasks called, _this: %1", _this];
|
2016-07-24 21:48:13 +00:00
|
|
|
private _side = _this select 0;
|
|
|
|
private _returnValue = [];
|
2016-07-31 15:30:48 +00:00
|
|
|
// This does not work on dedicated server for whatever reason
|
2016-07-24 21:48:13 +00:00
|
|
|
{
|
|
|
|
_unit = _x;
|
2016-07-31 15:30:48 +00:00
|
|
|
diag_log format["getSideTasks unit: %1 side %2", _unit, (side _unit)];
|
2016-07-24 21:48:13 +00:00
|
|
|
if (side _unit == _side) then
|
|
|
|
{
|
|
|
|
_tasks = _x call BIS_fnc_tasksUnit;
|
2016-07-31 15:30:48 +00:00
|
|
|
diag_log format["getSideTasks unit: %1 side %2 tasks %3", _unit, (side _unit), _tasks];
|
2016-07-24 21:48:13 +00:00
|
|
|
{
|
|
|
|
_returnValue pushBackUnique _x;
|
|
|
|
} foreach _tasks;
|
|
|
|
};
|
|
|
|
} foreach allUnits;
|
|
|
|
|
2016-07-31 15:30:48 +00:00
|
|
|
diag_log format["getSideTasks returning: %1", _returnValue];
|
2016-07-24 21:48:13 +00:00
|
|
|
_returnValue
|