onfirstspawn = OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
ReleaseCharacterSpawn(onfirstspawn)
onfirstspawn = nil
EnterVehicle(character, "uta_fly_ride_gunship")
objectives_timer = CreateTimer("objectives_timer")
SetTimerValue(objectives_timer, 2)
StartTimer(objectives_timer)
begin_objectives = OnTimerElapse(
function(timer)
StartObjectives ()
ScriptCB_EnableCommandPostVO(0)
end,
objectives_timer
)
end
end
)
Objective1 = ObjectiveGoto:New{TeamATT = ATT, -- objective made
text = "level.hoth.c.2", popupText = "level.hoth.c.pop.2", -- show objective on screen
regionName = "cp1_capture", mapIcon = "hud_objective_icon_circle", AIGoalWeight = 0}
Objective1.OnStart = function(self)
ATT_obj1_aigoal = AddAIGoal(ATT, "Deathmatch", 100)
ATT_obj1_aigoal2 = AddAIGoal(ATT, "Defend", 200, "objective")
MapAddEntityMarker("goto", "hud_objective_icon", 3.0, 1, "YELLOW", true) -- AI objective
Objective1.OnComplete = function(self)
ATT_ReinforcementCount = GetReinforcementCount(ATT)
SetReinforcementCount(ATT, ATT_ReinforcementCount + 1)
end
end