Author |
Topic: mapname.gsc File Help Needed! (Script Error) |
Zaphax |
|
General Member Since: Jun 17, 2008 Posts: 251 Last: Dec 29, 2013 [view latest posts] |
|
|
Category: CoD2 SP Mapping Posted: Wednesday, Aug. 17, 2011 06:25 pm |
|
Any idea why i get this cant find anything wrong with my script!? Thanks to everyone who will try to help me solve it.
Code:
#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");
main()
{
////LOAD MAIN FILES////
maps_load::main();
mapsMAPNAME_fx::main();
ambientPlay("ambient_mapname");
////ENVIRONMENT////
setExpFog(.00028, .60, .60 , .61, 0);
////INTRO SCREEN////
maps\_introscreen::introscreen_delay
(&"MAPNAME_INTRO_1",
&"MAPNAME_INTRO_2",
&"MAPNAME_INTRO_3",
&"MAPNAME_INTRO_4");
////PRECACHING////
precachestring(&"MAPNAME_INTRO_1");
precachestring(&"MAPNAME_INTRO_2");
precachestring(&"MAPNAME_INTRO_3");
precachestring(&"MAPNAME_INTRO_4");
////PLAYER SETUP////
level.player setViewmodel("xmodel/viewmodel_hands_german" );
level.player takeallweapons();
level.player giveWeapon("kar98k");
level.player giveWeapon("luger");
level.player giveWeapon("Stielhandgranate");
level.player giveWeapon("smoke_grenade_american");
level.player switchToWeapon("kar98k");
level.player switchToOffhand("Stielhandgranate");
////////////////////////**** OBJECTIVES ****////////////////////////
objective_1()
{
objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
objective_current (1);
a = getent("start_music","targetname");
a playsound( "soviet_tension_fragment01" );
level.officer waittill("death");
wait(1);
objective_state(1, "done");
maps\_utility::levelStartSave();
wait(2);
thread objective_2();
}
Any ideas? |
|
|
|
serthy |
General Member Since: Sep 8, 2010 Posts: 482 Last: Jun 28, 2013 [view latest posts] |
|
|
|
Category: CoD2 SP Mapping Posted: Wednesday, Aug. 17, 2011 06:38 pm |
|
Quote: level.player switchToOffhand("Stielhandgranate");
////////////////////////**** OBJECTIVES ****////////////////////////
objective_1()
{
you see whats missing? |
|
|
|
Tally |
General Member Since: Apr 21, 2005 Posts: 819 Last: Oct 26, 2012 [view latest posts] |
|
|
Category: CoD2 SP Mapping Posted: Wednesday, Aug. 17, 2011 06:40 pm |
|
Zaphax writes...Quote: Any idea why i get this cant find anything wrong with my script!? Thanks to everyone who will try to help me solve it.
Code:
#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");
main()
{
////LOAD MAIN FILES////
maps_load::main();
mapsMAPNAME_fx::main();
ambientPlay("ambient_mapname");
////ENVIRONMENT////
setExpFog(.00028, .60, .60 , .61, 0);
////INTRO SCREEN////
maps\_introscreen::introscreen_delay
(&"MAPNAME_INTRO_1",
&"MAPNAME_INTRO_2",
&"MAPNAME_INTRO_3",
&"MAPNAME_INTRO_4");
////PRECACHING////
precachestring(&"MAPNAME_INTRO_1");
precachestring(&"MAPNAME_INTRO_2");
precachestring(&"MAPNAME_INTRO_3");
precachestring(&"MAPNAME_INTRO_4");
////PLAYER SETUP////
level.player setViewmodel("xmodel/viewmodel_hands_german" );
level.player takeallweapons();
level.player giveWeapon("kar98k");
level.player giveWeapon("luger");
level.player giveWeapon("Stielhandgranate");
level.player giveWeapon("smoke_grenade_american");
level.player switchToWeapon("kar98k");
level.player switchToOffhand("Stielhandgranate");
////////////////////////**** OBJECTIVES ****////////////////////////
objective_1()
{
objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
objective_current (1);
a = getent("start_music","targetname");
a playsound( "soviet_tension_fragment01" );
level.officer waittill("death");
wait(1);
objective_state(1, "done");
maps\_utility::levelStartSave();
wait(2);
thread objective_2();
}
Any ideas?
Code: #include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");
main()
{
////LOAD MAIN FILES////
maps_load::main();
mapsMAPNAME_fx::main();
ambientPlay("ambient_mapname");
////ENVIRONMENT////
setExpFog(.00028, .60, .60 , .61, 0);
////INTRO SCREEN////
maps\_introscreen::introscreen_delay
(&"MAPNAME_INTRO_1",
&"MAPNAME_INTRO_2",
&"MAPNAME_INTRO_3",
&"MAPNAME_INTRO_4");
////PRECACHING////
precachestring(&"MAPNAME_INTRO_1");
precachestring(&"MAPNAME_INTRO_2");
precachestring(&"MAPNAME_INTRO_3");
precachestring(&"MAPNAME_INTRO_4");
////PLAYER SETUP////
level.player setViewmodel("xmodel/viewmodel_hands_german" );
level.player takeallweapons();
level.player giveWeapon("kar98k");
level.player giveWeapon("luger");
level.player giveWeapon("Stielhandgranate");
level.player giveWeapon("smoke_grenade_american");
level.player switchToWeapon("kar98k");
level.player switchToOffhand("Stielhandgranate");
////////////////////////**** OBJECTIVES ****////////////////////////
}
objective_1()
{
objective_add(1, "active", &"MAPNAME_OBJ_FOLLOW_1", (2504, 1000, 304));
objective_current (1);
a = getent("start_music","targetname");
a playsound( "soviet_tension_fragment01" );
level.officer waittill("death");
wait(1);
objective_state(1, "done");
maps\_utility::levelStartSave();
wait(2);
thread objective_2();
}
|
|
|
|
Zaphax |
|
General Member Since: Jun 17, 2008 Posts: 251 Last: Dec 29, 2013 [view latest posts] |
|
|
|
serthy |
General Member Since: Sep 8, 2010 Posts: 482 Last: Jun 28, 2013 [view latest posts] |
|
|
|
|
Zaphax |
|
General Member Since: Jun 17, 2008 Posts: 251 Last: Dec 29, 2013 [view latest posts] |
|
|
|
Zaphax |
|
General Member Since: Jun 17, 2008 Posts: 251 Last: Dec 29, 2013 [view latest posts] |
|
|
|
serthy |
General Member Since: Sep 8, 2010 Posts: 482 Last: Jun 28, 2013 [view latest posts] |
|
|
|
|
cskiller86 |
|
General Member Since: Nov 23, 2009 Posts: 528 Last: Oct 25, 2011 [view latest posts] |
|
|
|