I have a scriptproblem for a ET map were AXIS is the attacker. and Allies defends. I want the forward spawn to become Axis after they have blown a gate. Like in oasis old city but quit the oposit. And i cant get the damn thing to work, anyone has a tutorial for this? this is my latest test.
// ================================================
// FORWARD FLAG CONSTRUKTEB. GATE SCRIPT
// ================================================
forward_flag
{
spawn
{
accum 0 set 1 // Who owns flag: 0-Axis, 1-Allied, 2-Nobody
}
trigger axis_capture // Touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 trigger_if_equal 1 forward_flag axis_reclaim // Reclaimed from Allies
accum 0 set 0 // Axis own the flag
wm_announce "^3Axis have captured the Forward Flag!"
setstate forward_wobj default
}
trigger axis_reclaim
{
alertentity forward_wobj // Switch command map marker
}
trigger allied_capture // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "^3Allies have captured the Forward Flag!"
setstate forward_wobj default
alertentity forward_wobj // Switch command map marker
}
trigger force_axis
{
accum 1 abort_if_equal 0 //Abort if allies own
accum 1 set 0
setstate forward_wobj default
setstate forward_flag default
}
trigger kill
{
remove
}
}
// =================================================
// SIDEGATE
// ================================================
sidegate
{
spawn
{
wait 300
constructible_class 3 // 2=satchel 3=dyna
}
death
{
wm_objective_status 1 0 1
wm_objective_status 1 1 2
trigger forward_flag force_axis
trigger forward_flag kill
alertentity sidegate_bits
trigger sidegate_toi remove
wm_announce "The Axis have destroyed the Sidegate!"
}
}
sidegate_toi
{
trigger remove
{
remove
}
}
What the hell is wrong?