removing a unit class
Moderator: Moderators
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
removing a unit class
anyone know how to remove a unit class from your lua? P.S I have only one era for my map
-
SilvaDalek
- Sith

- Posts: 1329
- Joined: Sun Dec 02, 2007 12:52 pm
- xbox live or psn: TH3 R0LL3R
Re: removing a unit class
Something easy! Yay!
So you see this right? It will look similar in Galactic Civil War, just different names. Let's say we want rifleman gone. We take out his row. See?
(Note: The dc is only for if you have copied that sides folder and the Common folder from assets and put that in the map's side folder)
Code: Select all
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl,
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")Code: Select all
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl,
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: removing a unit class
Actually, you only need to remove the units that you don't want from the SetUpTeams section.
-
SilvaDalek
- Sith

- Posts: 1329
- Joined: Sun Dec 02, 2007 12:52 pm
- xbox live or psn: TH3 R0LL3R
Re: removing a unit class
This works too. So if I added a unit I would have to put him in the setup teams too
?
