Page 2 of 2
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 6:58 pm
by Commander_Fett
*slaps head 5 times
Oops, I didn't realiuze that those were seperate things. Thank you very much for the helpHowever, I'm still having problems with it.
Code: Select all
--objective: kill the ambushing cis
ambushers = TargetType:New{classname = "atm_inf_marine", killLimit = 8, icon = "hud_objective_icon_circle"}
Objective2= ObjectiveAssault:New{teamATT = ATT, teamDEF = amb,
text = "level.mad.campaign.2", popupText = "level.mad.campaign.2_popup"}
Objective2:AddTarget(ambushers)
Objective2.OnStart = function(self)
-- SetupAmbushTrigger("ambush_trigger_1", "ambush_path_1", 8, atm)
Ambush(ambush_path_1, 7, 8)
end
Objective2.OnComplete = function(self)
end
I'm reallyt sorry for not getting that sooner.

Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 7:30 pm
by RepSharpshooter
That doesn't look right.
This may be:
"path", number of units, team number
I assume atm = 3 ?
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 7:56 pm
by Commander_Fett
Code: Select all
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;
AmbushTeam = 3
atm = AmbushTeam
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 8:01 pm
by RepSharpshooter
Yeah ok. does the corrected ambush line work? And when you say "atm_inf_marine" did you rename the req and odf as well?
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 8:09 pm
by Commander_Fett
oops. no, it's still amb_inf_marine, I just forgot to change it. However, I changed it to amb:
Code: Select all
--objective: kill the ambushing cis
ambushers = TargetType:New{classname = "amb_inf_marine", killLimit = 8, icon = "hud_objective_icon_circle"}
Objective2= ObjectiveAssault:New{teamATT = ATT, teamDEF = amb,
text = "level.mad.campaign.2", popupText = "level.mad.campaign.2_popup"}
Objective2:AddTarget(ambushers)
Objective2.OnStart = function(self)
-- SetupAmbushTrigger("ambush_trigger_1", "ambush_path_1", 8, atm)
Ambush(ambush_path_1, 8)
end
Objective2.OnComplete = function(self)
end
and it
still doesn't work., Am I missing something obvious here?
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 8:30 pm
by RepSharpshooter
yes.
Your's:
Mine:
As seen in the post right above you!
Like I wrote in the post above wrote:Ambush("ambush_path_1", 8, atm)
Re: Campaign ambush as objective?
Posted: Fri Jan 02, 2009 8:48 pm
by Commander_Fett
Oops. I must of deleted that by accident. Well, the AI are finaly spawning, yipee! However, only seven spawn (there are eight spawn nodes, 0-7), so the objective isn't complteted, plus they won't attack or move. I set them up down here:
Code: Select all
atm = {
team = atm,
units = 8,
reinforcements = -1,
soldier = { "amb_inf_marine",8, 8},
}
}
SetTeamAsEnemy(ATT, atm)
SetTeamAsEnemy(atm, ATT)
SetTeamAsEnemy(ATT, DEF)
SetTeamAsEnemy(DEF, ATT)
SetTeamAsFriend(atm, DEF)
SetTeamAsFriend(DEF, atm)