---
name: "BIS_fnc_taskSetDestination"
type: function
status: ok
groups: ["Tasks"]
arma3_since: "1.00"
locality: {"argument": "global", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_taskSetDestination
revid: 347338
updated: 2023-09-11T00:28:50Z
---

# BIS_fnc_taskSetDestination

*Function · Tasks · Arma 3 v1.00*

Locality: arguments **global** · effect **global**

## Description

Set a task's destination. 

> [!NOTE]
> See Arma 3: Task Framework for more information.

## Syntax

```sqf
[taskName, destination] call BIS_fnc_taskSetDestination
```

**Parameters:**

- `taskName`: [String](../topics/String.md)
- `destination`: [Object](../topics/Object.md), [Array](../topics/Array.md), [Position](../topics/Position.md) or [String](../topics/String.md) - task destination:
  - [Object](../topics/Object.md) - task will be displayed on the object if player knows about it, otherwise it will be on estimated position or even hidden
  - [Array](../topics/Array.md) format [object, forceRealPosition]:
    - object: [Object](../topics/Object.md) - same as above
    - forceRealPosition: [Boolean](../topics/Boolean.md) - whether or not the task will be on exact object position even if the player does not know about the object
  - [Position](../topics/Position.md) - task will be on given positon
  - [String](../topics/String.md) - marker name. Task will be at markers current position (Won't update if marker was moved)

**Returns:** [String](../topics/String.md) - task ID

## Examples

### Example 1

```sqf
["BIS_task_01", [1337, 1337, 0]] call BIS_fnc_taskSetDestination;
```

## See also

Arma 3: Task Framework

<sub>Source: [BI Community Wiki — BIS fnc taskSetDestination](https://community.bistudio.com/wiki/BIS_fnc_taskSetDestination) (revision 347338).</sub>
