LuaAPI.wiki
changeset 407 36537eaf680c
parent 406 41bd558039c0
child 408 e9b65daecbcf
equal deleted inserted replaced
406:41bd558039c0 407:36537eaf680c
   851 <blockquote>Plays the specified sound for the chosen hedgehog's team.
   851 <blockquote>Plays the specified sound for the chosen hedgehog's team.
   852 </blockquote>
   852 </blockquote>
   853 
   853 
   854 
   854 
   855 == File system functions ==
   855 == File system functions ==
       
   856 === <tt>HedgewarsScriptLoad(scriptPath)</tt> ===
       
   857 Loads a script (i.e. a [LuaLibraries library]) from the specified `scriptPath`. The root directory is here Hedgewars’ data directory.
       
   858 
       
   859 Example:
       
   860 {{{
       
   861 HedgewarsScriptLoad("/Scripts/Locale.lua")  -- loads locale library
       
   862 }}}
       
   863 
   856 === <tt>!GetDataPath()</tt> ===
   864 === <tt>!GetDataPath()</tt> ===
   857 
   865 
   858 <blockquote>Returns the path to the data directory, used when adding libraries.
   866 <blockquote>Returns the path to the data directory, used when adding libraries.
   859 </blockquote>
   867 </blockquote>
   860 
   868