From cf8f630ec7fcf39392fa6bc817f92cab3c3d618b Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Tue, 26 Jul 2016 13:34:48 +0300 Subject: [PATCH] fix the autoassign --- helotraining_mp.Altis/createDropoffLZ.sqf | 2 +- helotraining_mp.Altis/createPickupLZ.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helotraining_mp.Altis/createDropoffLZ.sqf b/helotraining_mp.Altis/createDropoffLZ.sqf index 778c7bc..32cf37f 100644 --- a/helotraining_mp.Altis/createDropoffLZ.sqf +++ b/helotraining_mp.Altis/createDropoffLZ.sqf @@ -47,7 +47,7 @@ private _taskid = format["dropoff_%1", lzCounter]; // Create the task for everyone [_assignTo,[_taskid],[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,"CREATED",(STARTPRIORITY-lzCounter),true, _taskType, true] call BIS_fnc_taskCreate; // Assign to the player -[[_assignToPlayer],[_taskid],[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,"ASSIGNED",(STARTPRIORITY-lzCounter),true, _taskType, true] call BIS_fnc_setTask; +[_taskid,[_assignToPlayer],[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,"ASSIGNED"] call BIS_fnc_setTask; private _trg = createTrigger["EmptyDetector",getPos _lzLocation, false]; _trg setTriggerArea[lzSize,lzSize,0,false]; diff --git a/helotraining_mp.Altis/createPickupLZ.sqf b/helotraining_mp.Altis/createPickupLZ.sqf index 97f057a..49ee2ed 100644 --- a/helotraining_mp.Altis/createPickupLZ.sqf +++ b/helotraining_mp.Altis/createPickupLZ.sqf @@ -63,7 +63,7 @@ private _taskid = format["pickup_%1", lzCounter]; [_assignTo,[_taskid],[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,_taskState,(STARTPRIORITY-lzCounter),true, _taskType, true] call BIS_fnc_taskCreate; if (!(_assignExtra isEqualTo false)) then { - [_assignExtra,[_taskid],[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,"ASSIGNED",(STARTPRIORITY-lzCounter),true, _taskType, true] call BIS_fnc_setTask; + [_taskid,_assignExtra,[_longdesc, _shortdesc, _shortestDesc],getPos _lzLocation,"ASSIGNED"] call BIS_fnc_setTask; }; if (bSmoke) then