---
name: "BIS_fnc_selectRespawnTemplate"
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_selectRespawnTemplate
revid: 336927
updated: 2023-01-04T16:44:02Z
---

# BIS_fnc_selectRespawnTemplate

*Function · Respawn · Arma 3 v1.00*

## Description

Select respawn template from CfgRespawnTemplates and execute its script / function. Internal use.

## Syntax

```sqf
[mode, arguments] call BIS_fnc_selectRespawnTemplate
```

**Parameters:**

- `mode`: [String](../topics/String.md) - **case-sensitive**, can be one of:
  - "playerKilledScript"
  - "playerRespawnScript"
  - "playerRespawnSeagullScript"
  - "playerResurrectScript"
  - "playerRespawnOtherUnitScript"
  - "initRespawn"
  - "initRespawnStart"
  - "initRespawnEnd"
- `arguments`: [Array](../topics/Array.md)

**Returns:** [Array](../topics/Array.md) of [Script Handle](../topics/Script_Handle.md)s

## Examples

### Example 1

```sqf
["playerKilledScript", []] call BIS_fnc_selectRespawnTemplate;
```

<sub>Source: [BI Community Wiki — BIS fnc selectRespawnTemplate](https://community.bistudio.com/wiki/BIS_fnc_selectRespawnTemplate) (revision 336927).</sub>
