BIS fnc execVM: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(Added information to the page)
Line 6: Line 6:


|1.00|= Game version
|1.00|= Game version
|arg= |= MPARGUMENTS
|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
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| filename call [[BIS_fnc_execVM]] |= Syntax
 
|p1= filename: [[String]] |= Parameter 1
 
| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |= Return Value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_execVM]]; --> |= Syntax
|s2= [argument(s), filename] call [[BIS_fnc_execVM]] |= Alternative Syntax
 
|p21= argument(s): [[Any Value]] - Arguments are passed to script as magic variable [[_this]]. |= Parameter 1


|p1= |= Parameter 1
|p22= filename: [[String]] |= Parameter 2


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


|x1= <code></code> |=  
|x1= <code>"Bonus/initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> |= Example 1
 
|x2= <code><nowiki>[</nowiki>[[player]],"reposition.sqf"] call [[BIS_fnc_execVM]];</code> |= Example 2
 
|x3= <code><nowiki>[[</nowiki>[_param1, _param2], "addBonus.sqf"], "[[BIS_fnc_execVM]]", [[true]]] call [[BIS_fnc_MP]];</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 23:25, 29 August 2014


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:
Uncategorised

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_spawn

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