execVM: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
<h2 style="color:#000066"> | <h2 style="color:#000066">'''''argument'' execVM ''filename'''''</h2> | ||
Line 22: | Line 22: | ||
'''Description:''' | '''Description:''' | ||
Compile and execute function (sqf). Argument is passed to the script as local variable _this. The function is first searched in the mission folder, then in the campaign scripts folder and finally in the global scripts folder. | Compile and execute function (sqf). | ||
Argument is passed to the script as local variable _this. | |||
The function is first searched for in the mission folder, then in the campaign scripts folder and finally in the global scripts folder. | |||
'''Example''': | '''Example''': | ||
[[player]] '''execVM''' "test.sqf" | [[player]] '''execVM''' "test.sqf" |
Revision as of 23:04, 3 July 2006
argument execVM filename
Operand types:
argument: Any Value
filename: String
Type of returned value:
Compatibility:
Version 2.60 required.
Description:
Compile and execute function (sqf).
Argument is passed to the script as local variable _this.
The function is first searched for in the mission folder, then in the campaign scripts folder and finally in the global scripts folder.
Example:
player execVM "test.sqf"