add
this addAction ["Pickup Intel", "objectiveGather.sqf", [objTaskOne, 158], 1, false, false, "", ""];
To any object and use the following as the objectiveGather.sqf script:
_object = (_this select 0);
_soldier = (_this select 1);
_actionid = (_this select 2);
_thetask = (_this select 3) select 0;
_rotation = (_this select 3) select 1;
diag_log format["Task: %1", _thetask];
diag_log format["Rotation: %1 for %2", _rotation, _object];
_object attachTo [_soldier, [-0.18, -0.03, 0.03], "Pelvis"];
_object setdir _rotation;
the diag_log reports in the rtf file as Task: any an not the task object meaning you are unable to run:
_thetask setTaskState "Succeeded";
To update that specific task. The _rotation parameter sent works, but the _thetask does not.