Trooper count on a single CP

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
Jawa_Killer
Brigadier General
Brigadier General
Posts: 629
Joined: Thu Jun 23, 2005 6:06 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Trooper count on a single CP

Post by Jawa_Killer »

is there a way how to set up a certain count of troopers, spawning on a single CP? as i don't want 50% of my troops spawning on a CP that is just secondary and not primary (where most of troopers are needed) i remembered anywhere a value for "unit count" or sth like that..........or if not how to set up in the .lua file? thx for reply :)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Adjusting how many units spawn at a CP in ZE

Post by AceMastermind »

In ZE, click on whatever CP that you want to adjust, then go to the
  • Object Instance
on the right side of the screen and page down all the way until you see
  • AISpawnWeight
and enter whatever numbers you want in the blank for AI to spawn there.
I'm not sure if the numbers represent weight percentages or the actual number of units spawning though.
You'll just have to play around with it and see.

0 = no AI spawn
RC-1290

Post by RC-1290 »

You can also adjust this with objectives in the lua
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
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 Qdin »

I see.

Is that AISpawnWeight defined in numbers?

if so, what are the limits? if it's from 0-100 I'd presume it will focus in %'s :D lol (obvious, I know :roll: )

And if you change the weight for spawning at i.e. CP1... does it affect all the other's? O.o so if you make CP2 to have full value, does it then subtract from the other CP's? :)
Post Reply