end map


(Adminmight) #1

hi,how do i make my map ends when a team takes a flag?

like i want axis to take a flag and after they get it the game ends can some1 tell me how


(-SSF-Sage) #2

Use search. Next time I won’t answer. :wink:
Give the flag key: scriptname value: flag . Don’t forget all other essential stuff.


flag //scriptname of the flag
{
	spawn
	{
	wait 200
	}
		trigger allied_capture //use axis_capture instead for axis to cap
		{
		wm_announce "Allies have captured the last flag!"
		wm_announce "Allies have won the game!"
		wait 3000 //wait 3 secs
		wm_setwinner 1 //set winner allies=1, axis=0
		wm_endround //ends the round
		}
}


(DerSaidin) #3

If its a map aimed at competition play, don’t include a wait.