If I understand correctly, you want to move to the next level when all enemies are dead.
Unfortunatelly, IsObjective=1 was dissabled, I thought, it could help.
So, you can declare global variable say, "killcount" and increase it in AI script, inside "exit function" block. as Example:
function ai_soldier_exit(e)
If killcount == nil then
killcount = 1
else
killcount = killcount + 1
end
PlayCharacterSound(e,"onDeath")
end
By another hand, in your "winzone marker" script, assuming you've 10 soldiers in your map, edit as follow:
-- LUA Script - precede every function and global member with lowercase name of script
function winzone_init(e)
end
function winzone_main(e)
if g_Entity[e]['plrinzone'] ==1 and killcount == 10 then
JumpToLevelIfUsed(e)
end
end
Can't not test it now.
hth
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics