asdding custom units
Moderator: Moderators
asdding custom units
this may be a noobish question but i've searched around and looked in the documentation but I don't understand how to add custom units
RE: asdding custom units
the search button exists 

SetupTeams{
rep = {
team = REP,
units = 28,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1,4},
engineer = { "rep_inf_ep3_engineer",1,4},
sniper = { "rep_inf_ep3_sniper",1,4},
officer = {"rep_inf_ep3_officer",1,4},
special = { "rep_inf_ep3_jettrooper",1,4},
},
cis = {
team = CIS,
units = 75,
reinforcements = 200,
soldier = { "cis_inf_rifleman",25, 40},
assault = { "cis_inf_rocketeer",10,20},
engineer = { "cis_inf_engineer",10,20},
sniper = { "cis_inf_sniper",10,20},
officer = {"cis_inf_officer",10,20},
special = { "cis_inf_droideka",10,20},
}
}
AddUnitClass(REP,"rep_inf_commando",8,15)
SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "gar_inf_naboo_queen")
the highlighted line is the one you need. just replace rep_inf_commando with whatever you want and the REP in front of it determines which team your new unit is placed in. if you want a different team put IMP,CIS or ALL.
rep = {
team = REP,
units = 28,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1,4},
engineer = { "rep_inf_ep3_engineer",1,4},
sniper = { "rep_inf_ep3_sniper",1,4},
officer = {"rep_inf_ep3_officer",1,4},
special = { "rep_inf_ep3_jettrooper",1,4},
},
cis = {
team = CIS,
units = 75,
reinforcements = 200,
soldier = { "cis_inf_rifleman",25, 40},
assault = { "cis_inf_rocketeer",10,20},
engineer = { "cis_inf_engineer",10,20},
sniper = { "cis_inf_sniper",10,20},
officer = {"cis_inf_officer",10,20},
special = { "cis_inf_droideka",10,20},
}
}
AddUnitClass(REP,"rep_inf_commando",8,15)
SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "gar_inf_naboo_queen")
the highlighted line is the one you need. just replace rep_inf_commando with whatever you want and the REP in front of it determines which team your new unit is placed in. if you want a different team put IMP,CIS or ALL.

first of all i dont belive that you searched anything at all and secont this is what i found even without using the search function:
A guide for Making New Skins in SWBF II (refined!)
and
Sides help thread...
Next time USE the search function.
A guide for Making New Skins in SWBF II (refined!)
and
Sides help thread...
Next time USE the search function.

- [RDH]Zerted
- Gametoast Staff
- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
- minilogoguy18
- Master Bounty Hunter
- Posts: 1512
- Joined: Wed Nov 09, 2005 11:12 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set