FreeSpaceMods has been restored, thanks to the work of ngld and chief1983. Uploads are disabled, but all existing downloads should work. Read about it here.
0 Members and 1 Guest are viewing this topic.
local test = require("test")
I recently added built-in support for using the module system provided by Lua with the FSO filesystem. If you place a script file test.lua which is compatible with the Lua module system in data/scripts then you can load it into another script file like this:Code: [Select]local test = require("test")Lua will take care that the file is only loaded once and reused whenever necessary.
Copyright © 2001-2018 Hard Light ProductionsAll Rights Reserved
SMF 2.0.15 |
SMF © 2017, Simple Machines
Page created in 0.22 seconds with 31 queries.