---
name: "failMission"
type: command
status: ok
groups: ["Mission Information"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/failMission
revid: 363258
updated: 2024-03-26T10:51:31Z
---

# failMission

*Command · Mission Information · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Finish the mission. If the server is set to run persistent mission, [failMission](../commands/failMission.md) will not end the mission when last player gets kicked to the lobby. Use [endMission](../commands/endMission.md) to end the mission.

The end type can be:
- "CONTINUE" - this is default type, basically an alias to do nothing
- "KILLED"
- "LOSER"
- "END1"
- "END2"
- "END3"
- "END4"
- "END5"
- "END6"

**Mission saves won't be deleted**.

> [!NOTE]
> **Arma 3:** To maintain Arma 3 visual style, it is recommended to use [BIS_fnc_endMission](../functions/BIS_fnc_endMission.md) instead.

## Syntax

```sqf
failMission endtype
```

**Parameters:**

- `endtype`: [String](../topics/String.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
failMission "LOSER";
```

## See also

[missionEnd](../commands/missionEnd.md) · [endMission](../commands/endMission.md) · [forceEnd](../commands/forceEnd.md)

<sub>Source: [BI Community Wiki — failMission](https://community.bistudio.com/wiki/failMission) (revision 363258).</sub>
