execVM – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "Killzone Kid" to "Killzone_Kid")
 
(6 intermediate revisions by 3 users not shown)
Line 4: Line 4:


: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... -- [[User:Sy|Sy]] 02:34, 29 September 2011 (CEST)
: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... -- [[User:Sy|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]][[User:Mikero|Mikero (nee Ook?)]] 08:31, 2 November 2011 (CET)
::ah yes, in fact, it's a LOT more complicated than that. it also involves context (which file invoked the script) see [[desc.ext]] - [[User:Mikero|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 [[User:Killzone_Kid|Killzone_Kid]] ([[User talk:Killzone_Kid|talk]]) 15:45, 22 December 2015 (CET)
 
== Not entirely accurate notes ==
 
<dd class="notedate">Posted on January 5, 2007 - 12:30</dd>
<dt class="note">'''[[User:Giova|Giova]]'''<dd class="note">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

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