---
name: "BIS_fnc_respawnEndMission"
type: function
status: ok
groups: ["Respawn"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_respawnEndMission
revid: 363227
updated: 2024-03-26T10:50:29Z
---

# BIS_fnc_respawnEndMission

*Function · Respawn · Arma 3 v1.00*

## Description

End a mission if all players are dead *and* there are no more respawn tickets (if any).
- **Standard syntax** is for when [Respawn](../topics/Description.ext.md#respawn) is "NONE", "BIRD", "GROUP" or "SIDE"
- **Alternative syntax** is for when [Respawn](../topics/Description.ext.md#respawn) is "INSTANT" or "BASE"
  

> [!IMPORTANT]
> Only works in Multiplayer!

## Syntax

### Syntax 1

```sqf
call BIS_fnc_respawnEndMission
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [Nothing](../topics/Nothing.md) - the script doesn't end

### Syntax 2

```sqf
unit call BIS_fnc_respawnEndMission
```

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

## Examples

### Example 1

```sqf
call BIS_fnc_respawnEndMission;
```

### Example 2

```sqf
player call BIS_fnc_respawnEndMission;
```

## See also

[BIS_fnc_endMission](../functions/BIS_fnc_endMission.md) · [BIS_fnc_respawnTickets](../functions/BIS_fnc_respawnTickets.md) · [BIS_fnc_missionRespawnType](../functions/BIS_fnc_missionRespawnType.md) · [playableUnits](../commands/playableUnits.md) · [isMultiplayer](../commands/isMultiplayer.md)

<sub>Source: [BI Community Wiki — BIS fnc respawnEndMission](https://community.bistudio.com/wiki/BIS_fnc_respawnEndMission) (revision 363227).</sub>
