mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
this does not work on dedicated server, added more debugging
This commit is contained in:
parent
7f9666c4a7
commit
fabd3f689e
@ -1,16 +1,19 @@
|
|||||||
//diag_log format["getSideTasks called, _this: %1", _this];
|
diag_log format["getSideTasks called, _this: %1", _this];
|
||||||
private _side = _this select 0;
|
private _side = _this select 0;
|
||||||
private _returnValue = [];
|
private _returnValue = [];
|
||||||
|
// This does not work on dedicated server for whatever reason
|
||||||
{
|
{
|
||||||
_unit = _x;
|
_unit = _x;
|
||||||
|
diag_log format["getSideTasks unit: %1 side %2", _unit, (side _unit)];
|
||||||
if (side _unit == _side) then
|
if (side _unit == _side) then
|
||||||
{
|
{
|
||||||
_tasks = _x call BIS_fnc_tasksUnit;
|
_tasks = _x call BIS_fnc_tasksUnit;
|
||||||
|
diag_log format["getSideTasks unit: %1 side %2 tasks %3", _unit, (side _unit), _tasks];
|
||||||
{
|
{
|
||||||
_returnValue pushBackUnique _x;
|
_returnValue pushBackUnique _x;
|
||||||
} foreach _tasks;
|
} foreach _tasks;
|
||||||
};
|
};
|
||||||
} foreach allUnits;
|
} foreach allUnits;
|
||||||
|
|
||||||
//diag_log format["getSideTasks returning: %1", _returnValue];
|
diag_log format["getSideTasks returning: %1", _returnValue];
|
||||||
_returnValue
|
_returnValue
|
Loading…
Reference in New Issue
Block a user