1/5 Locals Spawn [Solved]
Posted: Tue Jul 06, 2010 3:14 pm
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)
-------------------------------------------
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)