---
name: "BIS_fnc_execVM"
type: function
status: deprecated
replaced_by: ["remoteExec", "remoteExecCall"]
groups: ["Program Flow"]
arma3_since: "1.00"
locality: {"argument": null, "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_execVM
revid: 336359
updated: 2022-12-29T08:50:08Z
---

# BIS_fnc_execVM

*Function · Program Flow · Arma 3 v1.00*

> [!WARNING]
> This function is deprecated. Use [remoteExec](../commands/remoteExec.md) or [remoteExecCall](../commands/remoteExecCall.md) instead.

Locality: effect **local**

## Description

> [!CAUTION]
> This information is **obsolete**. use [remoteExec](../commands/remoteExec.md)/[remoteExecCall](../commands/remoteExecCall.md) instead.

[execVM](../commands/execVM.md) desired script with desired argument(s). This function is only really useful when combined with [BIS_fnc_MP](../functions/BIS_fnc_MP.md) to execute a script remotely.

## Syntax

### Syntax 1

```sqf
filename call BIS_fnc_execVM
```

**Parameters:**

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

**Returns:** [Script Handle](../topics/Script_Handle.md) - can be used to determine (via [scriptDone](../commands/scriptDone.md)) when the script has finished.

### Syntax 2

```sqf
[arguments, filename] call BIS_fnc_execVM
```

**Parameters:**

- `arguments`: [Anything](../topics/Anything.md) - arguments are passed to script as magic variable [_this](../topics/Magic_Variables.md#this).
- `filename`: [String](../topics/String.md)

**Returns:** [Script Handle](../topics/Script_Handle.md) - can be used to determine (via [scriptDone](../commands/scriptDone.md)) when the script has finished.

## Examples

### Example 1

```sqf
"Bonus\initializeExtras.sqf" call BIS_fnc_execVM;
```

### Example 2

```sqf
[player, "reposition.sqf"] call BIS_fnc_execVM;
```

### Example 3

```sqf
// before Arma 3 v1.50
[[[_param1, _param2], "addBonus.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP;

// since Arma 3 v1.50
[[_param1, _param2], "addBonus.sqf"] remoteExec ["execVM"];
```

## See also

[BIS_fnc_execFSM](../functions/BIS_fnc_execFSM.md) · [BIS_fnc_execRemote](../functions/BIS_fnc_execRemote.md) · [BIS_fnc_spawn](../functions/BIS_fnc_spawn.md) · [BIS_fnc_call](../functions/BIS_fnc_call.md)

<sub>Source: [BI Community Wiki — BIS fnc execVM](https://community.bistudio.com/wiki/BIS_fnc_execVM) (revision 336359).</sub>
