BIS fnc execVM: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 16: | Line 16: | ||
| filename call [[BIS_fnc_execVM]] |SYNTAX= | | filename call [[BIS_fnc_execVM]] |SYNTAX= | ||
|p1= filename: [[String]] |= | |p1= filename: [[String]] |PARAMETER1= | ||
| [[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= | ||
Line 23: | Line 23: | ||
|s2= [argument(s), filename] call [[BIS_fnc_execVM]] |= Alternative 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]]. |= | |p21= argument(s): [[Any Value]] - Arguments are passed to script as magic variable [[_this]]. |PARAMETER1= | ||
|p22= filename: [[String]] |= | |p22= filename: [[String]] |PARAMETER2= | ||
|r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE= | |r2= [[Script]] - script handle, which can be used to determine (via [[scriptDone]]) when the script has finished. |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> |= | |x1= <code>"Bonus\initializeExtras.sqf" call [[BIS_fnc_execVM]];</code> |EXAMPLE1= | ||
|x2= <code><nowiki>[</nowiki>[[player]],"reposition.sqf"] call [[BIS_fnc_execVM]];</code> |= | |x2= <code><nowiki>[</nowiki>[[player]],"reposition.sqf"] call [[BIS_fnc_execVM]];</code> |EXAMPLE2= | ||
|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> |EXAMPLE3= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:30, 7 April 2019
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
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