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

Members Online

»
0 Active | 52 Guests
Online:

LATEST FORUM THREADS

»
Mohaa maps on Cod2?
CoD2 MP 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 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 subscribe
Author Topic: oh god...fx problem
cod2fun
General Member
Since: Aug 26, 2009
Posts: 75
Last: Sep 13, 2010
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 03:00 am
ok this is fx.gsc im trying to use

Code:
main()
{
	precacheFX();
	ambientFX();
	
	level.scr_sound["flak88_explode"]			= "flak88_explode";
}

precacheFX()
{
	level._effect["flak_explosion"]				= loadfx("fx/explosions/flak88_explosion.efx");

	//ambient FX                            		                                                      																																																																																
	level._effect["thin_black_smoke_S"]				= loadfx ("fx/smoke/thin_black_smoke_S.efx");         																																																																																
	level._effect["thin_black_smoke_M"]				= loadfx ("fx/smoke/thin_black_smoke_M.efx");         																																																																																
	level._effect["thin_light_smoke_M"]				= loadfx ("fx/smoke/thin_light_smoke_M.efx");         																																																																																
	level._effect["battlefield_smokebank_S"]		= loadfx ("fx/smoke/battlefield_smokebank_S.efx");
	level._effect["tank_fire_turret"] 				= loadfx ("fx/fire/tank_fire_turret_small.efx");
	level._effect["tank_fire_engine"] 				= loadfx ("fx/fire/tank_fire_engine.efx");
	level._effect["tank_fire_turret_large"] 		= loadfx ("fx/fire/tank_fire_turret_large.efx");


}

ambientFX()

	maps\mp\_fx::loopfx("battlefield_smokebank_S", (3296,-1056,32), 1, (3296,-1056,132));
        maps\mp\_fx::loopfx("battlefield_smokebank_S", (3712,-640,184), 1, (3712,-640,284));
        maps\mp\_fx::loopfx("battlefield_smokebank_S", (3904,-328,304), 1, (3904,-328,404));

	
	
	
	
}


And this is a message i get

******* script compile error *******
bad syntax: (file 'maps/mp/mp_testfield_fx.gsc', line 27)
maps\mp\_fx::loopfx("battlefield_smokebank_S", (3296,-1056,32), 1, (3296,-1056,132));
*
************************************
writing to: D:\Games\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script compile error
(see console for details)
Share |
_INSANE_
General Member
Since: Nov 6, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 03:17 am
You are missing the starting bracket right after ambientFX()

{
Share |
cod2fun
General Member
Since: Aug 26, 2009
Posts: 75
Last: Sep 13, 2010
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Aug. 6, 2010 08:31 am
_INSANE_ writes...
Quote:
You are missing the starting bracket right after ambientFX()

{

thx
Share |
Restricted Access Topic is Locked 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

»