LuaAPI.wiki
changeset 407 36537eaf680c
parent 406 41bd558039c0
child 408 e9b65daecbcf
--- a/LuaAPI.wiki	Wed Dec 03 02:52:36 2014 +0000
+++ b/LuaAPI.wiki	Wed Dec 03 03:03:58 2014 +0000
@@ -853,6 +853,14 @@
 
 
 == File system functions ==
+=== <tt>HedgewarsScriptLoad(scriptPath)</tt> ===
+Loads a script (i.e. a [LuaLibraries library]) from the specified `scriptPath`. The root directory is here Hedgewars’ data directory.
+
+Example:
+{{{
+HedgewarsScriptLoad("/Scripts/Locale.lua")  -- loads locale library
+}}}
+
 === <tt>!GetDataPath()</tt> ===
 
 <blockquote>Returns the path to the data directory, used when adding libraries.