Posted 26 June 2012 - 11:27 PM
Hello
I have got a file named goto with in it a function goto(x,y,z), that works on a gps. Now do I want to use that function from another file. So I searched for lua, and came up with require "goto". Require seems to be removed from CC, so I tried several alternatives like assert(loadfile()) and so, but none of them seems to work. I also tried to use os.loadAPI as a workaround, but then the gps system doesn't seem to work (in goto). What should I use and how should I use it?
I have got a file named goto with in it a function goto(x,y,z), that works on a gps. Now do I want to use that function from another file. So I searched for lua, and came up with require "goto". Require seems to be removed from CC, so I tried several alternatives like assert(loadfile()) and so, but none of them seems to work. I also tried to use os.loadAPI as a workaround, but then the gps system doesn't seem to work (in goto). What should I use and how should I use it?