thore, take your spam elsewhere… we all know how you have OCD about topic titles, okay? A lot of people do.
Need Help!
Yes, I know that, but it wont work, I spawn every time in a bunker (other spawn point)…
Remember that when you call --trigger allies_capture-- it should contain --setautospawn “Forward Spawn” 1–
For instance, if your forward spawn’s --team_WOLF_objective-- has a description of --Radio Tower Spawn–, the Allies have their rear spawn --team_WOLF_objective-- as --Allied Bunker Spawn–, and the Axis have their --team_WOLF_objective-- as Axis Castle Spawn–, it would look like this.
game_manager
{
spawn
{
wait 10
setautospawn “Radio Tower Spawn” 0
setautospawn “Allied Bunker Spawn” 1
}
}
radiotowerflag //or the name of your --team_WOLF_checkpoint–
{
spawn
{
accum 1 set 0 //if 0=Axis and 1=Allies, and the Axis start with the forward spawn
}
trigger axis_capture
{
accum 1 abort_if_equal 0 //so that the Axis don’t capture the flag while they already own it
accum 1 set 0 //the Axis now own the flag again
wm_announce “Axis have reclaimed the Radio Tower spawn!”
alertentity radiotower_wobj //so that the flag on the command map changes
setautospawn “Radio Tower Spawn” 0
setautospawn “Allied Bunker Spawn” 1
}
trigger allied_capture //allied with a D not an S
{
accum 1 abort_if_equal 1 //so that the Allies don’t capture the flag while they already own it
accum 1 set 1 //the Allies now own the flag
wm_announce “Allies have captured the Radio Tower spawn!”
alertentity radiotower_wobj
setautospawn “Radio Tower Spawn” 1
setautospawn “Axis Castle Spawn” 0
}
}
This script will work fine if you have the following entities with the keys/values
team_WOLF_objective
with DEFAULT_ALLIES checked
description: Allied Bunker Spawn
team_WOLF_bluespawn
with STARTACTIVE checked
team_WOLF_objective
with DEFAULT_AXIS checked
description: Axis Castle Spawn
team_WOLF_redspawn
with STARTACTIVE checked
team_WOLF_checkpoint aka forward spawn flag
with SPAWNPOINT checked
scriptname: radiotowerflag
targetname: radiotowerflag
target: radiotowerspawns
team_WOLF_objective
with DEFAULT_AXIS checked
description: Radio Tower Spawn
scriptname: radiotower_wobj
targetname: radiotower_wobj
team_WOLF_redspawn
with STARTACTIVE checked
targetname: radiotowerspawns
team_WOLF_bluespawn
DO NOT CHECK STARTACTIVE
targetname: radiotowerspawns
script_multiplayer
scriptname: game_manager