Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
1 Active | 5 Guests
Online:

LATEST FORUM THREADS

»
water
CoD4 MP Mapping
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: Bad Script Syntax
jelvischan
General Member
Since: Jun 21, 2012
Posts: 45
Last: Mar 14, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, Jul. 3, 2012 02:06 pm
attachment: image(27.9Kb)
Here is my CoD2 gsc file code:

Code:
main()
{
maps\mp\_load::main();

setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");

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");

thread escape();

thread doubledoors();

thread nade();

thread colt();

}



escape()
{
plat=getent("escape","targetname");

esc1=getent("escapedoor","targetname");

esc2=getent("escapedoor2","targetname");
trig=getent("trig_escape","targetname");
while(1)
{
trig waittill ("trigger");

esc1 notsolid();

esc2 notsolid();
plat movey (-1248,4,2,2);
plat waittill ("movedone");

wait(2);
plat movey (1248,4,2,2);
plat waittill ("movedone");


esc1 solid();

esc2 solid();
}
}



doubledoors()

{
door=getent("mcdoor","targetname");
door1=getent("mcdoor1","targetname");

trig=getent("trig_mcdoors","targetname");
while(1)
{
trig waittill ("trigger");
door rotateyaw (90,3,2,2);

door1 rotateyaw (90,3,2,2);
door waittill ("rotatedone");

door1 waittill ("rotatedone");

wait(1);
door rotateyaw (-90,7,2,2);

door1 rotateyaw (-90,7,2,2);
door waittill ("rotatedone");

door1 waittill ("rotatedone");

wait(5);
}
}



nade()

{
nade=getent("nade","targetname");

trig=getent("trig_nade","targetname");
while(1)
{
trig waittill ("trigger");
nade movez (-100,2,0.095,0.095);
nade waittill ("movedone");
wait(2);
nade movez (100,2,0.95,0.95);
nade waittill ("movedone");

}

}



colt()

{
colt=getent("colt","targetname");

trig=getent("trig_colt","targetname");
while(1)
{
trig waittill ("trigger");
colt movez (-100,2,0.095,0.095);
colt waittill ("movedone");
wait(2);
colt movez (100,2,0.95,0.95);
colt waittill ("movedone");

}


}


I screen shot the error message and what the problem was.

Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»