Hi
I got g_scripting: setautospawn: couldnt find target
im angry i wasted a lot of time on this error, couldnt figure it out. :x
Here is the script:
game_manager
{
spawn
{
wm_axis_respawntime 1 //Until developing end...
wm_allied_respawntime 1 //Until developing end...
wm_set_round_timelimit 99999 //Until developing end...
wm_set_defending_team 0 //Axis is the defending team
wm_setwinner 0 //Axis is the default winner
setautospawn "b" 0 //Axis spawns @ depotyard @ start
setautospawn "c" 1 //Allies spawns @ barrack @ start
}
}
maindoor
{
spawn
{
wait 200
constructible_class 3
}
}
flag_depotyard
{
spawn
{
}
trigger axis_capture
{
wm_announce "Axis reclaimed the Depot Yard!"
accum 0 set 0 //Axis own the flag
}
trigger allied_capture
{
wm_announce "Allies captured the Depot Yard!"
accum 0 set 1 //Allies own the flag
}
}
maindoor
{
spawn
{
}
death
{
wait 200
wm_announce "Allies captured the Groundfloor Spawn and fixed the Depot Yard!"
trigger self depotcheck
setautospawn "a" 1
//need axis here
alertentity wobj_groundfloor //Changes the groundfloor commandmapmarker
setstate flag_depotyard invisible
}
trigger depotcheck
{
accum 0 abort_if_equal 1 //Don't need to change the cm icon, if allies own the flag
alertentity wobj_depotyard
}
}
the descriptions of the wolf entities are correct!
I set g_scriptdebug 1, and then started the map, after setautospawn “b” 0 , i get the error. If i delete the first setautospawn, i get the error after second setautospawn(so, all of the setautospawns are incorrect, i meant). Strange. Can anybody help me? :?


(worked for me! , was really annoying after reading about 500 threads)