equal
deleted
inserted
replaced
7 |
7 |
8 == Usage == |
8 == Usage == |
9 To use a library you only need to add this function call at the top of the script: |
9 To use a library you only need to add this function call at the top of the script: |
10 <code language="lua">HedgewarsScriptLoad("Scripts/<Library Name>.lua")</code> |
10 <code language="lua">HedgewarsScriptLoad("Scripts/<Library Name>.lua")</code> |
11 Where `<Library Name>` is replaced by the name. |
11 Where `<Library Name>` is replaced by the name. |
12 |
|
13 *Note*: In ancient scripts, you might find this call instead: |
|
14 <code language="lua">loadfile(GetDataPath() .. "Scripts/<Library Name>.lua")()</code> |
|
15 This does not work with new Hedgewars versions anymore and causes the script to break. Use `HedgewarsScriptLoad` instead. |
|
16 |
12 |
17 == List of Lua libraries == |
13 == List of Lua libraries == |
18 |
14 |
19 * [LuaLibraryLocale Locale] |
15 * [LuaLibraryLocale Locale] |
20 * [LuaLibraryParams Params] |
16 * [LuaLibraryParams Params] |