Stringing a stringer
by Skylar Kelty · in Torque Game Engine · 11/04/2006 (6:24 am) · 1 replies
How do you string a "?
Im trying to write some script to a file using fileobject
Heres my code:
look at
See?
That sends out a syntax error
Ignore the fact that the missiongroup isn't closed.
I want the result to look like this:
How could i do this?
In short:
How do I do """ ?
Thanks
James
Im trying to write some script to a file using fileobject
Heres my code:
%file = new FileObject();
%file.openforwrite("hrek/data/missions/" @ $emapname @ ".mis");
%file.writeLine("//--- OBJECT WRITE BEGIN ---");
%file.writeLine("new SimGroup(MissionGroup) {");
%file.writeLine("");
%file.writeLine(" new PhysXWorld() {");
%file.writeLine(" errorReport = "0";");
%file.writeLine(" };");
%file.writeLine("");
%file.writeLine("//--- OBJECT WRITE END ---");
%file.close();
%file.delete();look at
%file.writeLine(" errorReport = "0";");See?
That sends out a syntax error
Ignore the fact that the missiongroup isn't closed.
I want the result to look like this:
//--- OBJECT WRITE BEGIN ---
new SimGroup(MissionGroup) {
new PhysXWorld() {
errorReport = "0";
};How could i do this?
In short:
How do I do """ ?
Thanks
James
About the author
Torque Owner Skylar Kelty
SkylarK
\"
Sorry