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

Members Online

»
0 Active | 16 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: elevator tutorial
-=braveheart=-
General Member
Since: Mar 31, 2005
Posts: 82
Last: Nov 5, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Thursday, Jun. 23, 2005 03:03 am
well, i tried to make an elevator using the tutorial, and im 99 percent sure that i've done everything right (then again that 1 percent could get me)
in the thing im supposed to add to my .gsc file, there is a script compile error with the line
level.elevatorDown = true;

it says bad syntax, and this is exactly what it says to have in the tutorial. Who's wrong, me or the tutorial?
Also, how could i fix this problem?
thanks
brave
Share |
ScrewBall
General Member
Since: Dec 21, 2004
Posts: 237
Last: Aug 8, 2005
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Thursday, Jun. 23, 2005 03:19 pm
maybe use false in stat of true?
Share |
supersword
General Member
Since: Jul 28, 2004
Posts: 1989
Last: Nov 22, 2011
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Thursday, Jun. 23, 2005 03:21 pm
Ok, post the .gsc you are using, and are you having your elevator start at the top or bottom?

Thanks,

Supersword
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Thursday, Jun. 23, 2005 03:25 pm
it might be the line before that which has the error... Post your entire .gsc file, maybe we can fix it.
Share |
-=braveheart=-
General Member
Since: Mar 31, 2005
Posts: 82
Last: Nov 5, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Friday, Jun. 24, 2005 03:44 am
here it is:
main()
{
setCullFog (0, 8000, 0.8, 0.8, 0.8, 0);
ambientPlay("ambient_mp_chateau");

maps\mp\_load::main();

game["allies"] = "british";
game["axis"] = "german";

game["british_soldiertype"] = "commando";
game["british_soldiervariation"] = "winter";
game["german_soldiertype"] = "wehrmacht";
game["german_soldiervariation"] = "winter";

game["attackers"] = "allies";
game["defenders"] = "axis";

game["layoutimage"] = "";

}
level.elevatorDown = true;
level.elevatorMoving = false;
thread elevator_start();
}

elevator_start() {
elevator = getentarray ("elevatorswitch","targetname");
if ( isdefined(elevator) )
for (i = 0; i < elevator.size; i++)
elevator thread elevator_think();
}

elevator_think() {
while (1) {
self waittill ("trigger");
if (!level.elevatorMoving)
thread elevator_move();
}
}

elevator_move() {
elevatormodel = getent ("elevatormodel", "targetname");
level.elevatorMoving = true;
speed = 2;
height = 192;
wait (1);
if (level.elevatorDown) {
elevatormodel playsound ("elevator1");
wait (1);
elevatormodel moveZ (344,7,2,2);
elevatormodel waittill ("movedone");
level.elevatorDown = false;
}
else {
elevatormodel playsound ("elevator1");
wait (1);
elevatormodel moveZ (-344,7,2,2);
elevatormodel waittill ("movedone");
level.elevatorDown = true;
}
level.elevatorMoving = false;
}
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Friday, Jun. 24, 2005 10:15 am
-=braveheart=- writes...
Quote:
here it is:
main()
{
blablabla main stuf

}
level.elevatorDown = true;
level.elevatorMoving = false;
thread elevator_start();
}



Remove the } above the level.elevatorDown = true;. Because that } close your main() function.

edited on Jun. 24, 2005 05:14 am by The_Caretaker
Share |
-=braveheart=-
General Member
Since: Mar 31, 2005
Posts: 82
Last: Nov 5, 2005
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Friday, Jun. 24, 2005 03:55 pm
alright, thanks a lot that fixed it! [thumbs_up]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»