mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
oops, forgot to add this, anyway, dist implementation
This commit is contained in:
16
helotraining_rewrite.Altis/getSideTasks.sqf
Normal file
16
helotraining_rewrite.Altis/getSideTasks.sqf
Normal file
@ -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
|
Reference in New Issue
Block a user