{"name":"BIS_fnc_taskSetDestination","title":"BIS fnc taskSetDestination","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_taskSetDestination","revid":347338,"updated":"2023-09-11T00:28:50Z","groups":["Tasks"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","locality":{"argument":"global","effect":"global"},"description":"Set a task's destination.\n\n> [!NOTE]\n> See Arma 3: Task Framework for more information.","syntaxes":[{"syntax":"[taskName, destination] call BIS_fnc_taskSetDestination","params":[{"name":"taskName","type":"String","type_expr":"String"},{"name":"destination","type":"Object, Array, Position or String","description":"task destination:\n\n- Object - task will be displayed on the object if player knows about it, otherwise it will be on estimated position or even hidden\n- Array format [object, forceRealPosition]:\n  - object: Object - same as above\n  - forceRealPosition: Boolean - whether or not the task will be on exact object position even if the player does not know about the object\n- Position - task will be on given positon\n- String - marker name. Task will be at markers current position (Won't update if marker was moved)","type_expr":"Object | Array | Position | String"}],"returns":{"type":"String","type_expr":"String","description":"task ID"}}],"examples":[{"code":["[\"BIS_task_01\", [1337, 1337, 0]] call BIS_fnc_taskSetDestination;"]}],"see_also":["Arma 3: Task Framework"]}