How do I call a function, Test1(), in script file Test1.lua from a function, say Test2 in script file Test2.lua???
you put the two script togheter at the top of Test1.lua like this:
assert(dofile("Test2.lua"), "Test2.lua is not found")
hope this helps some...
/NL
But this would meen that the variables in the included Test2.lua would not be the same as the "stand alone" Test2.lua?
u can still use any variables and any lua chunks if u assert a .lua file to another...
It is like attaching the lua code to the host-script...
Thanks, works fine :)