forward spawn


(dark-tim) #1

how do i have to change this script so the default of the forward spawn is alies

// FORWARD SPAWN POINT ================================================
forward_spawn
{
	spawn
	{
		wait 200
		setstate forwardflag_wobj invisible
		accum 0 set 0
	}

	trigger axis_capture
	{
		trigger game_manager forwardflagred
		trigger forward_spawn setaxis
	}

	trigger allied_capture
	{
		trigger game_manager forwardflagblue
		trigger forward_spawn setallies
	}

	trigger setaxis
	{
		setstate forwardflag_wobj default
		accum 0 abort_if_equal 0
		accum 0 set 0
		alertentity forwardflag_wobj
	}

	trigger setallies
	{
		setstate forwardflag_wobj default
		accum 0 abort_if_equal 1
		accum 0 set 1
		alertentity forwardflag_wobj
	}
[/code

(MadJack) #2

forward_spawn
{
	trigger axis_capture
	{
		setautospawn "Shack Spawn" 0
		wm_announce "The Axis captured the Forward Spawn!"
	}

	trigger allies_capture
	{
		setautospawn "Shack Spawn" 1
		wm_announce "The Allies captured the Forward Spawn!"
	}
}

As for lots of script stuff, 0 = Axis, 1 = Allied. Change the “Shack Spawn” for whatever you use in the team_wolf_checkpoint’s description’s value. Note that forward_spawn should be the team_wolf_checkpoint’s targetname’s value.

HTH


(dark-tim) #3

i’m a scripting noob :chef:
i don’t get it


(MadJack) #4

RTFT? :wink: lol

Get a tut, read it :slight_smile: You’ll understand my post :smiley:


(dark-tim) #5

i understand your post a bit… but i don’t need it anymore


(Loffy) #6

Ok.

This place helped me understand scripting better (see the nuts and bolts section): http://planetquake.com/simland/pages/articles/rtcw_doors.htm

// Loffy