Game Development Community

Accessing outside-of-file functions

by Andrew H · in Torque Game Builder · 08/03/2011 (4:39 pm) · 2 replies

Is it possible for code in one file to access a function in a completely different file? If so, how? Do I just call it, or must something else be done?

#1
08/03/2011 (4:54 pm)
You just call it, though you would need to make sure to exec(".."); the file first
#2
08/03/2011 (4:57 pm)
Oh, thanks. I knew I had to exec it, but I wasn't sure if something special had to be done afterwards.