# ObjectiveState

Kind: Enum · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-enum" data-pagefind-filter="kind:Enum">Enum</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span class="api-badge api-since">Added in 34.7.0</span>
</div>

<span id="T:Sansar.Simulation.ObjectiveState"></span>

State of a quest objective for a user.

```csharp
public enum ObjectiveState
```

## Values

| Value | Description |
|---|---|
| <span id="active"></span><span id="F:Sansar.Simulation.ObjectiveState.Active"></span>`Active` <span class="api-badge api-since">Added in 34.7.0</span> | The objective is currently active and available to complete for this user. |
| <span id="completed"></span><span id="F:Sansar.Simulation.ObjectiveState.Completed"></span>`Completed` <span class="api-badge api-since">Added in 34.7.0</span> | The objective has been completed for this user. |
| <span id="locked"></span><span id="F:Sansar.Simulation.ObjectiveState.Locked"></span>`Locked` <span class="api-badge api-since">Added in 34.7.0</span> | The objective is locked for this user and can not be completed. |
| <span id="none"></span><span id="F:Sansar.Simulation.ObjectiveState.None"></span>`None` <span class="api-badge api-since">Added in 34.7.0</span> | The objective state is not set, probably the user is not on the quest. |

## Used in examples

- [QuestDebugExample.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/QuestDebugExample.cs)
- [ScriptLibrary/Quest/QuestGiverInteraction.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestGiverInteraction.cs)
- [ScriptLibrary/Quest/QuestGiverTrigger.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestGiverTrigger.cs)
- [ScriptLibrary/Quest/QuestObject.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestObject.cs)
- [ScriptLibrary/Quest/QuestObjectBase.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestObjectBase.cs)
- [ScriptLibrary/Quest/QuestObjectInteraction.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestObjectInteraction.cs)
- [ScriptLibrary/Quest/QuestObjectTrigger.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestObjectTrigger.cs)
- [ScriptLibrary/Quest/QuestVisibility.cs](https://github.com/Wookey-Technologies/sansar-script-starter/blob/66af8b516b701088d043e4615acfcf5779356604/examples/official/ScriptLibrary/Quest/QuestVisibility.cs)

<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>