BIS fnc execVM: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Program Flow | |gr1 = Program Flow | ||
|arg= |MPARGUMENTS= | |arg= |MPARGUMENTS= | ||
Line 11: | Line 11: | ||
|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. | |[[execVM]] desired script with desired argument(s). This function is only really useful when combined with [[BIS_fnc_MP]] to execute a script remotely. | ||
| filename call [[BIS_fnc_execVM]] | | filename call [[BIS_fnc_execVM]] | ||
|p1= filename: [[String]] | |p1= filename: [[String]] | ||
| [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. | | [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. | ||
|s2= [argument(s), filename] call [[BIS_fnc_execVM]] | |s2= [argument(s), filename] call [[BIS_fnc_execVM]] | ||
|p21= argument(s): [[Any Value]] - Arguments are passed to script as magic variable [[_this]]. |PARAMETER21= | |p21= argument(s): [[Any Value]] - Arguments are passed to script as magic variable [[_this]]. |PARAMETER21= | ||
Line 25: | Line 25: | ||
|p22= filename: [[String]] |PARAMETER22= | |p22= filename: [[String]] |PARAMETER22= | ||
|r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. | |r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. | ||
|x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> | |x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> | ||
|x2= <code><nowiki>[</nowiki>[[player]],"reposition.sqf"] call [[BIS_fnc_execVM]];</code> | |x2= <code><nowiki>[</nowiki>[[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> | ||
| [[BIS_fnc_execFSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_spawn]], [[BIS_fnc_call]] | | [[BIS_fnc_execFSM]], [[BIS_fnc_execRemote]], [[BIS_fnc_spawn]], [[BIS_fnc_call]] | ||
}} | }} | ||
Revision as of 23:03, 17 January 2021
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
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