Sexual-Healing
13th November 2012, 17:59
Okay so might seem a bit rude creating an account on here to ask 1 question but please forgive me.
Okay so i have been following a tutorial thats in a different language, and im english, so i am using google translator. I followed it fine and made the gsc, and everything in radiant as it said etc etc.. but the map gets "Bad Syntax" compile script error when i try to play it. I know what this error means, somthing wrong with one of the gsc's but becuase the tutorial i followed was in another language maybe i did something wrong, well here are the main, and secret.gsc's maybe someone can help me and i will be thankful for ever :confused: :cool: :rolleyes:
Main.gsc
main()
{
maps\mp\_load::main();
maps\mp\teleport::main();
maps\mp\secret::main();
game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3") ;
}
Secret.gsc
main ()
{
secret thread ();
}
secret ()
{
fall = getent ("fall", "targetname");
trig = getent ("geheim_trig", "targetname");
while (true)
{
trig wait till ("trigger", user);
if ((user.name == "Jim") | | (user.name == "Terry") | | (user.name == "bob"))
{
fall notsolid ();
}
else
{
fall solid ();
}
}
}
Okay so i have been following a tutorial thats in a different language, and im english, so i am using google translator. I followed it fine and made the gsc, and everything in radiant as it said etc etc.. but the map gets "Bad Syntax" compile script error when i try to play it. I know what this error means, somthing wrong with one of the gsc's but becuase the tutorial i followed was in another language maybe i did something wrong, well here are the main, and secret.gsc's maybe someone can help me and i will be thankful for ever :confused: :cool: :rolleyes:
Main.gsc
main()
{
maps\mp\_load::main();
maps\mp\teleport::main();
maps\mp\secret::main();
game["allies"] = "american";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3") ;
}
Secret.gsc
main ()
{
secret thread ();
}
secret ()
{
fall = getent ("fall", "targetname");
trig = getent ("geheim_trig", "targetname");
while (true)
{
trig wait till ("trigger", user);
if ((user.name == "Jim") | | (user.name == "Terry") | | (user.name == "bob"))
{
fall notsolid ();
}
else
{
fall solid ();
}
}
}