[gameprogrammer] Re: Lua
- From: "Nicolas Goy, Kuon" <kuon@xxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Fri, 8 Aug 2008 10:39:25 +0200
On 2008-08-07, at 22:12, Alan Wolfe wrote:
Hey is anyone familiar with lua?
Do you know if there's a way to include one lua script in another
(ie #include)?
i've been googling it and checking the manual and havent been able
to find a way :/
require "filename"
Where filename will be searched in package.path.
You can do something like:
package.path = package.path .. ";" .. UI_LUA_DIRECTORY .. "?.lua"
Best regards
--
kuon
http://kuon.goyman.com
http://goyman.com
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- Follow-Ups:
- [gameprogrammer] Re: Lua
- From: Alan Wolfe
- References:
- [gameprogrammer] Lua
- From: Alan Wolfe
Other related posts:
- » [gameprogrammer] Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
- » [gameprogrammer] Re: Lua
Hey is anyone familiar with lua?Do you know if there's a way to include one lua script in another (ie #include)?
i've been googling it and checking the manual and havent been able to find a way :/
- [gameprogrammer] Re: Lua
- From: Alan Wolfe
- [gameprogrammer] Lua
- From: Alan Wolfe