BIS fnc execVM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 11: Line 10:


|eff= local |Effects in MP=
|eff= local |Effects in MP=
____________________________________________________________________________________________


|[[execVM]] desired script with desired argument(s). This function is only really useful when combined with [[BIS_fnc_MP]] to execute a script remotely. |DESCRIPTION=
|[[execVM]] desired script with desired argument(s). This function is only really useful when combined with [[BIS_fnc_MP]] to execute a script remotely. |DESCRIPTION=
____________________________________________________________________________________________


| filename call [[BIS_fnc_execVM]] |SYNTAX=
| filename call [[BIS_fnc_execVM]] |SYNTAX=
Line 21: Line 18:


| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE=
| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE=
____________________________________________________________________________________________


|s2= [argument(s), filename] call [[BIS_fnc_execVM]] |Alternative Syntax=
|s2= [argument(s), filename] call [[BIS_fnc_execVM]] |Alternative Syntax=
Line 30: Line 26:


|r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE2=
|r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE2=
____________________________________________________________________________________________


|x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> |EXAMPLE1=
|x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> |EXAMPLE1=
Line 37: Line 32:


|x3= <code><nowiki>[[</nowiki>[_param1, _param2], "addBonus.sqf"], "[[BIS_fnc_execVM]]", [[true]]] call [[BIS_fnc_MP]];</code> |EXAMPLE3=
|x3= <code><nowiki>[[</nowiki>[_param1, _param2], "addBonus.sqf"], "[[BIS_fnc_execVM]]", [[true]]] call [[BIS_fnc_MP]];</code> |EXAMPLE3=
____________________________________________________________________________________________


| [[BIS_fnc_execFSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_spawn]], [[BIS_fnc_call]] |SEEALSO=
| [[BIS_fnc_execFSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_spawn]], [[BIS_fnc_call]] |SEEALSO=

Revision as of 23:13, 16 January 2021

Hover & click on the images for description

Description

Description:
execVM desired script with desired argument(s). This function is only really useful when combined with BIS_fnc_MP to execute a script remotely.
Execution:
call
Groups:
Program Flow

Syntax

Syntax:
filename call BIS_fnc_execVM
Parameters:
filename: String
Return Value:
Script - script handle, which can be used to determine (via scriptDone) when the script has finished.

Alternative Syntax

Syntax:
[argument(s), filename] call BIS_fnc_execVM
Parameters:
argument(s): Any Value - Arguments are passed to script as magic variable _this.
filename: String
Return Value:
Script - script handle, which 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:
[[[_param1, _param2], "addBonus.sqf"], "BIS_fnc_execVM", true] call BIS_fnc_MP;

Additional Information

See also:
BIS_fnc_execFSMBIS_fnc_execRemoteBIS_fnc_spawnBIS_fnc_call

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section