unitsunitsunits....

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
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 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: Germany
Contact:

unitsunitsunits....

Post by Bantha55 »

i´m sure this question was asked many times before but i can´t find the thread :mrgreen:

How can i make that there are more units on the battlefield?

thanks for help
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 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: Looking for a new CPU
Contact:

Re: unitsunitsunits....

Post by Commander_Cody771 »

When you are setting up your maps, on the left you will see many selections such as: Hero, Assault and one of them will be Conquest. you can set the unit amount. Be sure when you are done, to click Session. :wink:
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: unitsunitsunits....

Post by Caleb1117 »

I think he means in a mod map.

In this aprt of your map's Lua:
SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "orep_inf_rifleman",9, 25},
assault = { "orep_inf_rocketeer",1,4},
engineer = { "orep_inf_engineer",1,4},
sniper = { "orep_inf_sniper",1,4},
officer = { "orep_inf_officer",1,4},
special = { "orep_inf_merc",1,4},
There is as you should see:
units = 20,
Change that to say... 40 However, do you also see:
soldier = { "orep_inf_rifleman",9, 25},
As you can see, there are two numbers after the unit name, the first one, is the minimum number of AI that will spawn as that unit type.
The second is the maximum Ai that will spawn as that class.
If you raise the unit count, you should also increase the second number so that the count of all the unit's in that side's second number is equal too, or above the spawn number you set.
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 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: Germany
Contact:

Re: unitsunitsunits....

Post by Bantha55 »

thanks,but i have already done this....i´m cleaning...
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: unitsunitsunits....

Post by Caleb1117 »

How High did you set the count?
If you set it above a certain ammount, you need to add some extra code to the lua.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: unitsunitsunits....

Post by FragMe! »

Just what I was going to say did you add the uber line? Add it in the location shown.

Code: Select all

SetUberMode(1);
    ReadDataFile("ingame.lvl")
    
    --  REP Attacking (attacker is always #1)
    local REP = 1
    local CIS = 2
Post Reply