Arma 3 Scripting

BIS_fnc_execVM

  • Deprecated
  • Local effect
  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

Warning

This function is deprecated. Use remoteExec or remoteExecCall instead.

Description

Caution

This information is obsolete as of Arma 3 v1.50. Reason: use remoteExec/remoteExecCall instead.

execVM desired script with desired argument(s). This function is only really useful when combined with BIS_fnc_MP to execute a script remotely.

Syntax

Syntax 1

filename call BIS_fnc_execVM

Parameters:

Returns: Script Handle - can be used to determine (via scriptDone) when the script has finished.

Syntax 2

[arguments, filename] call BIS_fnc_execVM

Parameters:

Returns: Script Handle - can be used to determine (via scriptDone) when the script has finished.

Examples

Example 1

"Bonus\initializeExtras.sqf" call BIS_fnc_execVM;

Example 2

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

Example 3

// 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 · BIS_fnc_execRemote · BIS_fnc_spawn · BIS_fnc_call