Spawn Question?


(nUllSkillZ) #21

One } too much.
And you haven’t had the alertentiy-actions.
Try the following one:


game_manager
{
   spawn
   {
      // ...
      // syntax: setautospawn <target spawn> <team>
      // with <targetspawn> = value of the description key
      wait 500
      setautospawn   "Tank Depot"   0
      setautospawn   "Allied Spawn"   1
      // ...
   }
   // ...

   trigger allies_steal_tank
   {
    alertentity tankdepot_axis_spawns
    alertentity tankdepot_allied_spawns
    alertentity tankdepotblob      // Tank Depot team_WOLF_objective

    setautospawn   "Axis Spawn"   0
    setautospawn   "Tank Depot"   1 
   }
}
           
depotgate
{
   spawn
   {
   wait 200
   constructible_class 3
   }

   death
   {
   trigger game_manager allies_steal_tank
   }
}

antenna
{
   spawn
   {
   wait 200
   constructible_class 3
   }

   death
   {
   wm_endround
   }
}

bridge
{
   spawn
   {
      wait 200
      constructible_class 2
      constructible_constructxpbonus 1
      constructible_destructxpbonus 1
      setstate bridge default
      setstate crates invisible
   }

   buildstart final
   {
      setstate bridge underconstruction
      setstate crates default
   }

   built final
   {
      setstate bridge default
      setstate crates invisible
      wm_announce "They have repaired the bridge!"
   }

   decayed final
   {
      setstate bridge invisible
      setstate crates default
   }

   death
   {
      setstate bridge invisible
      setstate crates default
      wm_announce "We've destroyed the bridge!"
   }
}

gate
{
   spawn
   {
      wait 200
      constructible_class 2
      constructible_constructxpbonus 1
      constructible_destructxpbonus 1
      setstate gate invisible
      setstate crates2 default
   }

   buildstart final
   {
      setstate gate underconstruction
      setstate crates2 default
   }

   built final
   {
      setstate gate default
      setstate crates2 invisible
      wm_announce "Built the antinam defence!"
   }

   decayed final
   {
      setstate gate invisible
      setstate crates2 default
   }

   death
   {
      setstate gate invisible
      setstate crates2 default
      wm_announce "Destroyed the Antina Defence!"
   }
} 


(Benfun7) #22

That worked great!
Thanks!
Ben