Warning: file_put_contents(/ff_86322220437cb19a07a9459152e16ee7d28508d7efe6d7f0.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
execVM - OFPEC Scripting Command Reference | OFPEC The Editing Center

argument execVM filename

Operand types

argument : Any Value
filename: String

Type of returned value

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.
execVM works fine from scripts without assigning a variable to hold the return value, but if used from activation fields of Waypoints or Triggers there must be an assignment to a variable to hold the return value or the command will fail.

Used In

ArmA

Example

player execVM "test.sqf"

Advertisement