---
name: "BIS_fnc_respawnManager"
type: function
status: ok
groups: ["Respawn"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_respawnManager
revid: 309778
updated: 2022-05-05T12:09:49Z
---

# BIS_fnc_respawnManager

*Function · Respawn · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

## Description

All checkpoints must be markers with name prefix BIS_checkpointnr

## Syntax

*syntax inferred from the function header*

```sqf
[param1, param2] call BIS_fnc_respawnManager
```

**Parameters:**

- `param1` — 1: function called - string, list of functions:
  - Init
  - Destroy
  - AddCheckpoint
  - RemoveCheckpoint
- `param2` — 2: parameter for the function
  For more information see https://wiki.bistudio.com/index.php/RespawnManager

**Returns:** depends on the function called

TODO:        -performance: add markers positions to the array instead of the testing
        their positions every loop in _CheckNearestCheckpoint function - DONE
        -pridat funkci GetActualCheckpoint(character) - DONE
        -osetrit pripad, kdy postava neexistuje (je prave v respawnu/zahynula) - NEPOTREBUJEME
        -typy markeru podle modu: normal/debug - DONE
        -optional parameter marker name - DONE
        -optional prefix marker name as a parameter to the Init procedure
        -add functionality for 3 parameters function call - DONE
        -vlastni lokalni checkpointy(markery) pro hratelne postavy(AddCheckpoint/RemoveCheckpoint)

## Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns come from it.

```sqf
/*
Version:    2.0
Name:        Respawn manager
DESCRIPTION:    All checkpoints must be markers with name prefix BIS_checkpointnr
PARAMETERS:    1) function called - string, list of functions:
            - Init
            - Destroy
            - AddCheckpoint
            - RemoveCheckpoint
        2) parameter for the function
        For more information see https://wiki.bistudio.com/index.php/RespawnManager
RETURNED VALUE: depends on the function called

TODO:        -performance: add markers positions to the array instead of the testing
        their positions every loop in _CheckNearestCheckpoint function - DONE
        -pridat funkci GetActualCheckpoint(character) - DONE
        -osetrit pripad, kdy postava neexistuje (je prave v respawnu/zahynula) - NEPOTREBUJEME
        -typy markeru podle modu: normal/debug - DONE
        -optional parameter marker name - DONE
        -optional prefix marker name as a parameter to the Init procedure
        -add functionality for 3 parameters function call - DONE
        -vlastni lokalni checkpointy(markery) pro hratelne postavy(AddCheckpoint/RemoveCheckpoint)
*/
```

<sub>Source: [BI Community Wiki — BIS fnc respawnManager](https://community.bistudio.com/wiki/BIS_fnc_respawnManager) (revision 309778).</sub>
