Exec'ing a script outside your game directory?
by Ian Poma · in Torque Game Builder · 06/20/2006 (7:56 am) · 3 replies
Can you exec a script outside your base game directory? In my case I have a script in the common library I would like to exec in my game.
How do i exec "common/gamescripts/base/myFile.cs" from "Mygame/main.cs"?
I've tried doing exec("../common/gamescripts/base/myFile.cs"), but that doesn't work.
-TorqueGameBuilder ---MyGame ------main.cs ---common ------gamescripts ------------base -----------------myFile.cs
How do i exec "common/gamescripts/base/myFile.cs" from "Mygame/main.cs"?
I've tried doing exec("../common/gamescripts/base/myFile.cs"), but that doesn't work.
Torque Owner Ben R Vesco
exec("/common/gamescripts/base/myFile.cs");
The beginning slash (/) should mean from your TGB root dir, a tilde (~) means from the current mod dir, and dot (.) means from the current dir.