Subtracting units, adding a few...

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Hunted_One

Subtracting units, adding a few...

Post by Hunted_One »

Ok this is simple and probably LUA based. How do I make it where I only have certain units? In other words, like, only clone riflemen vs. the SBD's. How would I do this? Just remove lines with these units from the LUA? Thanks in advance.

Oh yes and I'd like to know how to max out the possible units on either side. Do I change the line for like 150 reinforcments in the LUA?

Also, one last thing. If possible, where is the unit for the B1? I want to make it droidekas, B1's, and SBD's vs. just clones. Thanks.
Vyse
General
General
Posts: 776
Joined: Sun Aug 28, 2005 5:01 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Vyse »

I believe your asking about this. Just delete the names of the other units being called out in the LUA under the "SetupTeams{" Section like below.

If you want to have more units on the map change the "Untis = " part higher.

rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "",1, 4},
engineer = { "",1, 4},
sniper = { "",1, 4},
officer = {"",1, 4},
special = { "",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "",1, 4},
engineer = { "",1, 4},
sniper = { "",1, 4},
officer = {"",1, 4},
special = { "",1, 4},
}
}
CmdAt-a

Post by CmdAt-a »

oooh thanks vyse, i was wondering how t get all bots away from te map, and i didnt really know if i had to delete the names or the numbers :D
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

could you change the hero from the LUA to where it says
SetHeroClass(ALL, "all_hero_hansolo_tat")
SetHeroClass(IMP, "imp_hero_bobafett")

thanks
fat_walrus

Post by fat_walrus »

To earase bots change the min value to 0 and max 1. That should do it.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Post by DarthD.U.C.K. »

i edit the unit ad reinforcementscount, but nothing changes in game there is still the number
150
Hunted_One

Post by Hunted_One »

Hmm...I don't know what's wrong.
Post Reply