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: World at War
Category: CoDWW Scripting
Scripting and coding with Call of Duty: World at War.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: teleporting
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 09:09 am
If you have an error that says "bad syntax", there is no need to post your zone CSV file. The error wont be in there, as console cant pick up syntax problems in a file used to compile assets.

Also, please use phpbb code when posting code as it makes it easier to look at.

This is your problem:

Quote:
main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_load::main();

// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
maps\mp\_teleport::main();


Notice the curly brace highlighted in blue. You cannot put a call to a file outside a curly brace which is closing a funtion.

The correct code should be:

Code:
main()
{

	maps\mp\_load::main();

	game["allies"] = "marines";
	game["axis"] = "japanese";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "pacific";
	game["axis_soldiertype"] = "pacific";

	maps\mp\_teleport::main();
}




edited on Aug. 31, 2009 05:11 am by DemonSeed
Share |
Zambesi
General Member
Since: Jun 12, 2009
Posts: 12
Last: Sep 20, 2009
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 05:22 pm
thank you all that helped me out on this, this is working great now, only have one question.......... can i enter three different teleport destinations from one trigger?? or do i have to do a seperate trigger for every destination, my idea was to get the players to spawn at three destinations randomly in the desert as for i have a pretty big long range sniper map i am almost done with??

did i say thank you for all your input????
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW Scripting

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

»