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

Members Online

»
0 Active | 48 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Very Wierd script error
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 15, 2007 03:15 pm
Hey, im testing some tanks going down a road and then unloading. And i get the stupidest syntax error. First, it says the line
maps\_sherman::main("xmodel/vehicle_american_sherman");

has a syntax error. THen, if i remove or do // to that it says
maps\_load::main(); has a syntax error. WTF! I dont understand what CoD2 is thinking. What is wrong with my code? Plz help with this simple problem.
Code:

#include maps\_utility;

maps\_load::main();
maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_vehicle::scripted_spawn(1);

main()
{
thread move1();
}
move1()
{
level.sherman1 = getent("ally_tank_1", "script_noteworthy");
level.sherman2 = getent("ally_tank_2", "script_noteworthy");
level.sherman2 = getent("ally_tank_3", "script_noteworthy");

sherman1path1 = getvehiclenode ("tank1_path1", "script_noteworthy");
sherman2path1 = getvehiclenode ("tank2_path1", "script_noteworthy");
sherman3path1 = getvehiclenode ("tank3_path1", "script_noteworthy");

level.sherman1 attachPath(sherman1path1);
level.sherman2 attachPath(sherman2path1);
level.sherman3 attachPath(sherman3path1);

level.sherman1 waittill("reached_end_node");
level.sherman1 notify ("unload");

level.sherman2 waittill("reached_end_node");
level.sherman2 notify ("unload");

level.sherman3 waittill("reached_end_node");
level.sherman3 notify ("unload");

}
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 15, 2007 03:20 pm
maps\_load::main();
maps\_sherman::main("xmodel/vehicle_american_sherman");
maps\_vehicle::scripted_spawn(1);

should be inside your main() function, not outside it.
Share |
Boltriflemaster
General Member
Since: Aug 22, 2006
Posts: 130
Last: Nov 7, 2008
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 15, 2007 03:22 pm
Lol, i was just about to post a NVM reply, i figured that out already, wow im stupid, plz call me stupid.[banghead][banghead][banghead][banghead]
Share |
eganwotv
Deactivated Account
Since: May 28, 2007
Posts: 961
Last: Oct 31, 2010
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Wednesday, Aug. 15, 2007 03:23 pm
Put the load lines under main [duh]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP 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

»