> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# questRemainingObjectives

> Récupère tous les objectifs restants pour une quête.

Récupère tous les objectifs restants pour une quête.

#### 🎮 Méthode

```lua theme={null}
quest:questRemainingObjectives(questId)
```

#### 📝 Arguments

| Nom       | Type  | Description              |
| --------- | ----- | ------------------------ |
| `questId` | `int` | Identifiant de la quête. |

#### 💎 Valeur de retour

| Type    | Description                                      |
| ------- | ------------------------------------------------ |
| `{int}` | Tableau des identifiants d'objectifs en attente. |

#### 💡 Exemple

```lua theme={null}
local remaining = quest:questRemainingObjectives(100)
global:printMessage("Restants : " .. #remaining .. " objectifs")

for _, objId in ipairs(remaining) do
  global:printMessage("  - Objectif " .. objId .. " en attente")
end
```
