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

Members Online

»
0 Active | 9 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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: elevator
ricardos
General Member
Since: Aug 23, 2007
Posts: 191
Last: Dec 24, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Friday, Aug. 24, 2007 04:21 pm
ok i tried to make the script work but it dont:O

Code:
main()
{
maps\mp\_load::main();
maps\mp\lift::main();
thread door1_rotate();


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



door1_rotate()


door1 = getent("door1", "targetname");
trig = getent("door_trigger1", "targetname");
while (1)
{
trig 
waittill("trigger");
door1 rotateYaw(-90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone");
wait (3);
door1 rotateYaw(90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone"); 
}
}


thats my gsc did i do something wrong?
and im sorry but i cant find a tutorial called moving things ( not in the cod2 section or the cod1 or codUO :O
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Friday, Aug. 24, 2007 06:21 pm
lol ops i didn't think of that.... Knew it must have been something dum like that i was forgetting to say!
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
94sniper
General Member
Since: Jun 15, 2007
Posts: 907
Last: Jun 22, 2009
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Friday, Aug. 24, 2007 07:32 pm
shouldn't the part with:

door1_rotate()

have a ; after it? and also main()and while and trigger. i've just kind of noticed that most things should have the colon-- ; --.
Share |
ricardos
General Member
Since: Aug 23, 2007
Posts: 191
Last: Dec 24, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Friday, Aug. 24, 2007 08:44 pm
it works now it looks like this
Code:
main() {
maps\mp\_load::main();
maps\mp\elevatortje::main();

thread door1_rotate();
}


door1_rotate()
{

door1 = getent("door1", "targetname");
trig = getent("door_trigger1", "targetname");
while (1)
{
trig 
waittill("trigger");
door1 rotateYaw(-90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone");
wait (3);
door1 rotateYaw(90, 1.5, 0.7, 0.7);
door1 waittill("rotatedone"); 
}
}


and the car.. i dont need a remedy :D i dont do that part of the tutorial and then my lift works fine [thumbs_up]
thanks everybody for helping
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP 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

»