---
name: "BIS_fnc_VREffectKilled"
type: function
status: ok
groups: ["VR"]
arma3_since: "1.24"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_VREffectKilled
revid: 349396
updated: 2023-11-08T16:27:25Z
---

# BIS_fnc_VREffectKilled

*Function · VR · Arma 3 v1.24*

Locality: executed with **spawn**

## Description

Delete body of a virtual soldier after he's killed.

## Syntax

```sqf
[object, instant, delay] call BIS_fnc_VREffectKilled
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - object
- `instant`: [Boolean](../topics/Boolean.md) - (Optional, default [false](../commands/false.md)) [true](../commands/true.md) to delete the body right away, [false](../commands/false.md) to add **killed** [EH](../commands/addEventHandler.md) which will delete it after death
- `delay`: [Number](../topics/Number.md) - (Optional, default 10) time in seconds before the body disappears

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) when the function is done

## Examples

### Example 1

```sqf
[player] call BIS_fnc_VREffectKilled;
```

### Example 2

```sqf
[player, true, 5] spawn BIS_fnc_VREffectKilled;
```

## See also

Arma 3: Virtual Reality Custom Courses

<sub>Source: [BI Community Wiki — BIS fnc VREffectKilled](https://community.bistudio.com/wiki/BIS_fnc_VREffectKilled) (revision 349396).</sub>
