execVM – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
== Script is compiled every time you use this command. ==
== Script is compiled every time you use this command. ==


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


== Not entirely accurate notes ==
== Not entirely accurate notes ==


<!-- Note Section BEGIN -->
<dd class="notedate">Posted on January 5, 2007 - 12:30</dd>
<dd class="notedate">Posted on January 5, 2007 - 12:30
<dt class="note">'''[[User:Giova|Giova]]'''<dd class="note">More about the Returned value:''
<dt class="note">'''[[User:Giova|Giova]]'''<dd class="note">More about the Returned value:''


Line 37: Line 36:


-the variable _time does not work in sqf called with execVM command
-the variable _time does not work in sqf called with execVM command
<!-- Note Section END -->

Latest revision as of 14:48, 12 March 2024

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