Game Development Community


#1
08/10/2006 (7:29 am)
You could use getWorkingDirectory() which returns the filepath to the executable that called it. What are you trying to use it for?
#2
08/10/2006 (7:20 pm)
I am just confused when using the exec() to include the files.
#3
08/11/2006 (7:50 am)
Well all your script files will normally be in the gameScripts directory. You will be calling it from the game.cs file which is also in the gamescript directory. Therefore, you just need to use "exec("./myScripts.cs")" . The ./ represents that it is in the same directory as the file that's calling it (game.cs).