Hi!
I tried some searching in this forum but i don’t really find something to help me, so…
In my “deatmatch”-map i want to simply one (not-really-)objective for changing the winner-team at the end of round.
There are two buttons in the middle of the map and one should change the “wm_setwinner” 1 and the other to 0.
I saw that there is target_script_trigger, i tried out with that by connecting the button (func_door) to the target_script_trigger. I add the key scriptname and target in it as axis_btt or allies_btt.
the mapname.script looks like this:
game_manager
{
spawn
{
// Game rules
wm_axis_respawntime 1
wm_allied_respawntime 1
wm_set_round_timelimit 40
// 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
setautospawn "Axis Spawn A" 0
setautospawn "Allies Spawn B" 1
wait 1000
}
trigger axis_btt
{
wm_setwinner 0
wm_announce "The Axis have pushed their button!"
}
trigger allies_btt
{
wm_setwinner 1
wm_announce "The Allied have pushed their button!"
}
}
:disgust: surely it doesn’t work… 
so, what do i wrong, what is needed else or where to write the code elsewhere?
Thx for helping
greetz
_GD


thx i will do…


and we’ll try something different.
