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

Members Online

»
0 Active | 48 Guests
Online:

LATEST FORUM THREADS

»
map test
CoD Mapping
first map
CoD4 MP Mapping
eXtreme+ v2.9
CoDBO Map + Mod Releases
Gaming
Q4 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 Scripting
Scripting and coding with Call of Duty 2.
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: Botzom Mapping
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Sep. 30, 2012 03:32 pm
you should really change this part into something slightly more productive...
Code:
players = getEntArray( "player" , "classname" );

while( !isDefined( players ) || !players.size )
{
	wait( 0.1 );
	players = getEntArray( "player" , "classname" );
}

or
Code:
	for( players = getEntArray( "player" , "classname" ) ; !isDefined( players ) || !players.size ; players = getEntArray( "player" , "classname" ) )	
	{
		wait( 0.1 );
	}

or
Code:
	players = getEntArray( "player" , "classname" );

	if( !isDefined( players ) || !players.size )
		level waittill( "connected" );

	players = getEntArray( "player" , "classname" );



also things like that can cras the server if there is not such an entity in the map:

getent("zd"+i,"targetname") hide();

i personally would advice you to doublecheck if getEntArray() works as it should: means check if the array axist befor you run a loop with it
also check if every entry in the array exist before you do some stuff with it

also i was looking above your code and themoving part wasnt included

you should create a simple testmap before + logfile 2 +developer 1 and run it, test everything whatsoever

Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»