K,this script that i have seems to be working fine,except the part that should give forward bunker to allies and secure it if they destroy the “maindoor1” now it kills the flag but bunker stays to who owned the bunker before
here is the script
////////////////
//game_manager//
////////////////
game_manager
{
spawn
{
accum 1 set 0
// Game rules
wm_axis_respawntime 30
wm_allied_respawntime 20
wm_number_of_objectives 1
wm_set_round_timelimit 20
// Current main objectives for each team (0=Axis, 1=Allies)
wm_set_main_objective 0 1
wm_set_main_objective 1 1
// Objective overview status indicators
//wm_objective_status <objective> <team (0=Axis, 1=Allies)> <status (0=neutral 1=complete 2=failed)>
wm_objective_status 1 0 0
// Stopwatch mode defending team (0=Axis, 1=Allies)
wm_set_defending_team 0
// If the round timer expires, the Axis have won, so set the current winning team
// Set the round winner: 0 == AXIS, 1 == ALLIED
wm_setwinner 0
}
trigger maindoor1_destroyed
{
wm_announce "Allies have secured the forward bunker!"
setautospawn "Axis second spawn" 0
setautospawn "Forward Bunker" 1
kill ForwardBunker
}
trigger objective1
{
accum 1 set 1
trigger game_manager checkgame
}
trigger checkgame
{
accum 1 abort_if_not_equal 1
wm_setwinner 1
wait 1000
wm_endround
}
}
v2rocket
{
spawn
{
wait 300
constructible_class 3
}
death
{
wm_announce "Allies have blown the prototype rocket!"
trigger game_manager objective1
}
}
////////
//BOOM//
////////
door1 // Base gate
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "Allies have blown the base gate!"
}
}
maindoor1 // 2nd door
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "Allies have blown the bunker door!"
trigger game_manager maindoor1_destroyed
}
}
//////////
//spawn//
////////
bunker_check
{
spawn
{
wait 1000
accum 0 set 0
}
trigger axis_capture
{
accum 0 abort_if_equal 0
accum 0 set 0
alertentity bunker
setautospawn "Forward Bunker" 0
setautospawn "Allied start" 1
}
trigger allied_capture
{
accum 0 abort_if_equal 1
accum 0 set 1
alertentity bunker
setautospawn "Axis second spawn" 0
setautospawn "Forward Bunker" 1
}
}
maybe there are more errors then just this one…