BIS fnc execVM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)<nowiki\/>\[\[([a-zA-Z0-9_]+)\]\](.*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 26: | Line 26: | ||
|x1= <sqf>"Bonus\initializeExtras.sqf" call BIS_fnc_execVM;</sqf> | |x1= <sqf>"Bonus\initializeExtras.sqf" call BIS_fnc_execVM;</sqf> | ||
|x2= <code> | |x2= <code>[player,"reposition.sqf"] call [[BIS_fnc_execVM]];</code> | ||
|x3= <code><nowiki>[[</nowiki>[_param1, _param2], "addBonus.sqf"], "[[BIS_fnc_execVM]]", [[true]]] call [[BIS_fnc_MP]];</code> | |x3= <code><nowiki>[[</nowiki>[_param1, _param2], "addBonus.sqf"], "[[BIS_fnc_execVM]]", [[true]]] call [[BIS_fnc_MP]];</code> |
Revision as of 12:09, 13 July 2022
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): Anything - 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:
- 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