BIS fnc execVM: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = Multiplayer |GROUP1=") |
m (Text replacement - "\[\[Category\:Function Group\: MP(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
||
Line 50: | Line 50: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:execVM}}]] | [[Category:Functions|{{uc:execVM}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:execVM}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:execVM}}]] |
Revision as of 01:18, 10 October 2020
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:
- Multiplayer
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
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