execVM – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search

the script is also searched for in \addons

what on earth is a 'global scripts folder' ????????

It's the path defined by 'scriptsPath' root level property in the default config.cpp. eg. scriptsPath="vbs2\data\scripts\"; I think isn't it... -- Sy 02:34, 29 September 2011 (CEST)
ah yes, in fact, it's a LOT more complicated than that. it also involves context (which file invoked the script) see desc.ext - Mikero (nee Ook?) 08:31, 2 November 2011 (CET)

Script is compiled every time you use this command.

Removed this ^^^ from description. IMO this is old functionality, scripts are cached in A3 Killzone_Kid (talk) 15:45, 22 December 2015 (CET)

Not entirely accurate notes

Posted on January 5, 2007 - 12:30
Giova
More about the Returned value: the type 'Script' returned by this command, is in fact a kind of 'Thread Handle'. GOOD POINT: sqf functions launched with execVM will run asynchronously from its caller script/function. It is possible to manage multi-threading development, by using: -handle script returned by execVM -force the thread to terminate by using 'terminate' command -synchronise a script by using 'ScriptDone' command BAD POINT: -sqf funcion cannot return value (because execVM is already returning the thread Handle) -the variable _time does not work in sqf called with execVM command