Page 1 of 1

1/5 Locals Spawn [Solved]

Posted: Tue Jul 06, 2010 3:14 pm
by AgentSmith_#27
I have a local team set up, and it appears to work, accept that I have 5 path nodes and 5 units specified to spawn in my LUA, yet only 1 unit is on the field at one time. Here are the defining LUA lines:

-------------------------------------------
ReadDataFile("dc:SIDE\\alc.lvl",
"alc_inf_geonosian")
-------------------------------------------

-------------------------------------------
SetTeamName (4, "Aliens")
AddUnitClass (4, "alc_inf_geonosian", 5,5)
SetUnitCount (4, 5)
AddAIGoal(4, "Deathmatch", 100)
SetTeamAsEnemy(ATT,4)
SetTeamAsEnemy(4,ATT)
SetTeamAsEnemy(DEF,4)
SetTeamAsEnemy(4,DEF)
-------------------------------------------

anyone notice any inconsistencies?

EDIT: Well, I solved it all by myself. What I did was swap it with local team 3 (which I only wanted one of anyway) so that it was team 3 and the other one was team 4, and changed this:
AddUnitClass (3, "alc_inf_geonosian", 5,5)
to this:
AddUnitClass (3, "alc_inf_geonosian", 1,5)

Re: 1/5 Locals Spawn

Posted: Tue Jul 06, 2010 3:29 pm
by Darth_Squoobus
AgentSmith_#27 wrote:I have a local team set up, and it appears to work, accept that I have 5 path nodes and 5 units specified to spawn in my LUA, yet only 1 unit is on the field at one time. Here are the defining LUA lines:

-------------------------------------------
ReadDataFile("dc:SIDE\\alc.lvl",
"alc_inf_geonosian")
-------------------------------------------

-------------------------------------------
SetTeamName (4, "Aliens")
AddUnitClass (4, "alc_inf_geonosian", 5,5)
SetUnitCount (4, 5)
AddAIGoal(4, "Deathmatch", 100)
SetTeamAsEnemy(ATT,4)
SetTeamAsEnemy(4,ATT)
SetTeamAsEnemy(DEF,4)
SetTeamAsEnemy(4,DEF)
-------------------------------------------

anyone notice any inconsistencies?
I don't see anything, but you might want to raise the reinforcement count. Otherwise they won't last long.

Re: 1/5 Locals Spawn

Posted: Wed Jul 07, 2010 12:30 pm
by AgentSmith_#27
They're a local team so they're unlimited. I've tryed lots of things but nothing works, any ideas anyone? this local team is vital to my map, which is very near release.

Re: 1/5 Locals Spawn

Posted: Wed Jul 07, 2010 1:46 pm
by myers73
when you launch the map are yo u setting certain modes to have a different number than the default bots?

Re: 1/5 Locals Spawn

Posted: Wed Jul 07, 2010 3:02 pm
by AgentSmith_#27
For now the map is planned on being Clone Wars Conquest only, and no, I don't believe so. I do change it from 16 to 32 once in a while if that's what you mean.

Re: 1/5 Locals Spawn

Posted: Wed Jul 07, 2010 6:17 pm
by myers73
yes it is, because if you lowered it to say 5, then only one local would no be surprising.

Re: 1/5 Locals Spawn

Posted: Thu Jul 08, 2010 11:10 am
by AgentSmith_#27
Well... This wouldn't be the problem since I've only moved the counter up, and not down (you'd think) And now that I think about it, this has happened before on the same map with another local team (which has been since removed, it didn't fit)