Spawnflag 1


(Hell.Sh!t.Cash) #1

Spawn flag not works my first spawnflag :stuck_out_tongue: i think problem in script

In my spawnflag :
classname team_WOLF_chekpoint
target forwardsspawns
origin 2038 877 280
angle 360
scriptname flag1area
spawnflags 1

Blue spawn near flag:

classname team_CTF_bluespawn
origin 2032 984 296
targetname forwardsspawns

Red spawn near flag:

classname team_CTF_redspawn
origin 2040 760 296
targetname forwardsspawns
angle 360
spawnflags 1

Now the script in Disco-trickjump/maps/Disco-trickjump.script

game_manager
{
spawn
{
// Set scenario information

	wm_axis_respawntime		0
	wm_allied_respawntime		0
	wm_set_round_timelimit		0

}

}

// FLAG 1
//
flag1
{
spawn
{
accum 1 set -1
}

trigger axis_capture	// flag has been touched by an Axis player
{
	accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
	accum 1 set 0					// Axis own the pole
	wm_announce	"Axis capture the flag 1!"
	//alertentity flag1spawns
	alertentity flag1area

	globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
	globalaccum 0 set 1
	wait 500
	setautospawn "Flag 1" 0
	setautospawn "Flag 1" 1
}

trigger allied_capture	// flag has been touched by an allied player
{
	accum 1 abort_if_not_equal -1	// flag owned by someone, then abort.
	accum 1 set 1					// Allies own the pole
	wm_announce	"^1Flag 1 captured!"
	//alertentity flag1spawns
	alertentity flag1area

	globalaccum 0 abort_if_greater_than 0 // atleast flag number 1 already taken, abort
	globalaccum 0 set 1
	wait 500
	setautospawn "Flag 1" 0
	setautospawn "Flag 1" 1
}

trigger kill
{
	remove
}

}

Why it not works? please i want axis and allies respawning if axis cap flag axis respwning if allies cap flag allies respawning not more.


(EB) #2

http://www.spyjuice.com/spawn_exchange.htm