Script^problems


(Ice-Colder) #1

I’m really pissed my frikin script isnt working can anyone tell me why

game_manager
{
	spawn
	{
		// Stopwatch mode defending team (0=Axis, 1=Allies)
		wm_set_defending_team	0

		// Winner on expiration of round timer (0=Axis, 1=Allies)
		wm_setwinner	0
	}
porte1
{
   spawn
   {
      wait 200
      constructible_class 3
   }
   death
   {
      wm_announce "The allies have blown the First Gate!"
   }
}
porte2
{
   spawn
   {
      wait 200
      constructible_class 3
   }
   death
   {
      wm_announce "Allies have blown up the Second Gate!"
   }
}
radar
{
	spawn
	{
		wait 200
		constructible_class 3
	}
	death
	{


		wm_setwinner	1
		wm_announce "Allied team has blown up The radar Controls You Dumbasses!"

		wm_objective_status 5 0 2
		wm_objective_status 5 1 1

		wait 1500
		wm_endround
	

oh why isnt it working :frowning:


(Drakir) #2

Should be like this:

game_manager 
{ 
   spawn 
   { 
      // Stopwatch mode defending team (0=Axis, 1=Allies) 
      wm_set_defending_team   0 

      // Winner on expiration of round timer (0=Axis, 1=Allies) 
      wm_setwinner   0 
   } 
}

porte1 
{ 
   spawn 
   { 
      wait 200 
      constructible_class 3 
   } 
   death 
   { 
      wm_announce "The allies have blown the First Gate!" 
   } 
} 
porte2 
{ 
   spawn 
   { 
      wait 200 
      constructible_class 3 
   } 

   death 
   { 
      wm_announce "Allies have blown up the Second Gate!" 
   } 
} 
radar 
{ 
   spawn 
   { 
      wait 200 
      constructible_class 3 
   } 
   death 
   { 


      wm_setwinner   1 
      wm_announce "Allied team has blown up The radar Controls You Dumbasses!" 

      wm_objective_status 5 0 2 
      wm_objective_status 5 1 1 

      wait 1500 
      wm_endround 
    }
}