[gameprogrammer] Re: Lua


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


Other related posts: