capturable spawnpoints: problem


(ShadowAgent) #1

ok i’m now making the spawns for my map, but there is a problem.

allies spawn at south plaza
axis spawn at town hq
town hq is capturable
if allies capture town hq they spawn there
and now here is the mess…
axis are supposed to spawn in the boat command center when the town hq has been captured, but they still spawn at town hq. i cant get to spawn in the boat, even if i click on the flag in the limbo. i believe its something stupid but i cant see what. here is the part for the spawns of my script:

foward_flag
{
spawn 
{
wait 300
accum 0 set 0 // Who owns flag: 0-Axis, 1-Allied, 2-Nobody
}
trigger axis_capture	// Touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 trigger_if_equal 1 forward_flag axis_reclaim 	// Reclaimed from Allies
accum 0 set 0 // Axis own the flag
wm_announce "Axis have reclaimed the Forward Flag!"
setstate forward_wobj default
setautospawn "Town headquarters" 0
}
trigger axis_reclaim
{
alertentity forward_wobj 	// Switch command map marker
}
trigger allied_capture 	// Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "Allies have captured the Forward Flag!"
setstate forward_wobj default
alertentity forward_wobj // Switch command map marker
setautospawn "Town headquarters" 1
setautospawn "Boat command center" 0
} 
}

I tried modifing it to this but no change either


foward_flag
{
spawn 
{
wait 300
accum 0 set 0 // Who owns flag: 0-Axis, 1-Allied, 2-Nobody
}
trigger allied_capture 	// Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "Allies have captured the Forward Flag!"
setstate forward_wobj default
alertentity forward_wobj // Switch command map marker
setautospawn "Town headquarters" 1
setautospawn "Boat command center" 0
}
trigger axis_reclaim
{
accum 1 abort_if_equal 0
accum 1 set 0
wm_announce "Axis have reclaimed the Forward Flag!"
alertentity forward_wobj // Switch command map marker
setautospawn "Town headquarters" 0
setautospawn "South plaza" 1
} 

i tried different things in gtk but none worked
can someone please point me in the good direction? if this matter has been already dealt with, please give me a link to the topic or website, since i haven’t found one yet, even with my numerous searches and tries. also im sorry if this has been solved a million times but my searches returned nothing :frowning:

thanks for explaining me the matter :smiley:


(ShadowAgent) #2

please can someone explain me im in the potato juice trying to figure this out :banghead:


(S14Y3R) #3

Hi, try removing the setstate default and just use the alertentity.


foward_flag
{
spawn
{
wait 300
accum 0 set 0 // Who owns flag: 0-Axis, 1-Allied, 2-Nobody
}
trigger allied_capture    // Touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "Allies have captured the Forward Flag!"
//setstate forward_wobj default
alertentity forward_wobj // Switch command map marker
//setautospawn "Town headquarters" 1
//setautospawn "Boat command center" 0
}
trigger axis_reclaim
{
accum 1 abort_if_equal 0
accum 1 set 0
wm_announce "Axis have reclaimed the Forward Flag!"
alertentity forward_wobj // Switch command map marker
//setautospawn "Town headquarters" 0
//setautospawn "South plaza" 1
}

Try moving the setautospawns to your gamemanager, like it is in Oasis.script, if it still won’t work.

  • Is your team_WOLF_checkpoint targeting the flag spawns?
  • Is the spawnpoint box checked?

I’d start with that, and see if it works. gl.


(ShadowAgent) #4

lol i just noticed my second spawn wasnt active :smiley:

thanks for the help :slight_smile: