[code]function ScriptPostLoad()
EnableSPHeroRules()
KillObject("zombie1")
onfirstspawn = OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
ReleaseCharacterSpawn(onfirstspawn)
onfirstspawn = nil
timePop = CreateTimer("timePop")
SetTimerValue(timePop, 45.0)
StartTimer(timePop)
ShowTimer("timePop")
time = OnTimerElapse(
function(timer)
ShowTimer(nil)
--SetObjectTeam("zombie1", 3)
ShowMessageText("level.trd.wave1",ALL)
ShowMessageText("level.trd.wave1",IMP)
BeginObjectives() <--- Here it does stop
ReleaseTimerElapse(time)
DestroyTimer(timer)
end,
timePop
)
end
end)
--Objective Wave 1, Kill the 50 Zombies
Objective1 = ObjectiveAssault:New{teamATT = ATT, teamDEF = DEF,
text = "level.trd.wave1", popupText = "level.trd.wave1", AIGoalWeight = 0}
Zombie = TargetType:New{classname = "ewk_inf_repair", killLimit = 50}
Objective1:AddTarget(Zombie)
Objective1.OnStart = function(self)
RespawnObject("zombie1")
Ambush("zombie1", 50, 0.5)
zombie_goal = AddAIGoal(50, "Defend", 100, "cp1","cp2")
AddAIGoal(ATT, "Deathmatch", 99999)
AddAIGoal(ATT, "Deathmatch", 99999)
end
Objective1.OnComplete = function(self)
ShowMessageText("game.objectives.complete", ATT)
DeleteAIGoal(scouts_goal)
end
end
[/code]