ending map with triple obj


(redfox) #1

so i want to make map end, but it needs 3 things: 1)1st thing transmit 2)2nd thing transmit 3)tank reaching to final spline… so i have no idea how to write the script help plz


(sQynor) #2
game_manager
{
	spawn
	{
		wait 200
		wm_axis_respawntime 30	
		wm_allied_respawntime 20	
		wm_set_round_timelimit 30		
		wm_set_defending_team 0		
		wm_setwinner 0
	}
	trigger check
	{
		accum 0 inc 1
		accum 0 abort_if_less_than 3
		wm_setwinner 1
		wait 1000
		wm_endround
	}
}

Try something like that. Everytime you transmit or Destroy something let it trigger game_manager check

If it’s done 3 times allies win.

The first time it increases to 1. then it gets aborted since it’s not enough.
The second time it increased to 2. it’s still less than 3
And the 3th time is the last OBj. which is 3 and Wm_setwinner becomes 1 and endround. match ends and allies wins.