AI won't shoot enemy
Posted: Fri Mar 25, 2016 12:08 pm
Hello community,
I'm facing a few problems on my custom mode I made. So I made an order 66 mode where you play the 327th Star Corps vs. Aayla Secura on Felucia.
First of all is there a way to only spawn 1 Aayla Secura? This is my SetupTeams LUA:
Now when I play as Clone Troopers everything works fine (there's only 1 Aayla Secura AI walking around)
But when I play as Aayla then there's always a second Aayla AI. I already tried setting the PlayerMax variable to 1 like this:
but then when I play as Clone Troopers no Aayla AI spawns at all.
But the bigger problem is this one:
When I play the new game mode (i just replaced it as the elimination mode) the Clones won't even attack Aayla Secura (whether it's me or the AI).
They just walk around doing nothing and they only shoot when I'm directly in front of them as Aayla Secura.
I set the AIs' objective to ObjectiveTDM and the AIGoal to "Deathmatch" and I didn't mess with the ObjectiveTDM. Here's the complete LUA:
I cut the Sound section from the LUA since it's not relevant.
I hope somebody can help me quick, because I really need that game mode working in time.
Thanks in advance!
-The66Order66
I'm facing a few problems on my custom mode I made. So I made an order 66 mode where you play the 327th Star Corps vs. Aayla Secura on Felucia.
First of all is there a way to only spawn 1 Aayla Secura? This is my SetupTeams LUA:
Code: Select all
jed = {
team = JED,
units = 1,
reinforcements = -1,
soldier = { "rep_hero_aayla_jedihunt", 1, 2}
}, But when I play as Aayla then there's always a second Aayla AI. I already tried setting the PlayerMax variable to 1 like this:
Code: Select all
jed = {
team = JED,
units = 1,
reinforcements = -1,
soldier = { "rep_hero_aayla_jedihunt", 1, 1}
}, But the bigger problem is this one:
When I play the new game mode (i just replaced it as the elimination mode) the Clones won't even attack Aayla Secura (whether it's me or the AI).
They just walk around doing nothing and they only shoot when I'm directly in front of them as Aayla Secura.
I set the AIs' objective to ObjectiveTDM and the AIGoal to "Deathmatch" and I didn't mess with the ObjectiveTDM. Here's the complete LUA:
Hidden/Spoiler:
I hope somebody can help me quick, because I really need that game mode working in time.
Thanks in advance!
-The66Order66