Local Reinforcement Count

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
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Local Reinforcement Count

Post by asleeponduty »

Hello
I am trying to set up a reinforcement count for my local team, the Jawas. What do I put in to do this? Do i use something like
SetReinforcementCount( 3, 5) and do something sneaky so I dont always get victory when i kill them all (they are helping the enemy team)
?
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Local Reinforcement Count (help needed)

Post by bobfinkl »

asleeponduty wrote:Hello
I am trying to set up a reinforcement count for my local team, the Jawas. What do I put in to do this? Do i use something like
SetReinforcementCount( 3, 5) and do something sneaky so I dont always get victory when i kill them all (they are helping the enemy team)
?
As far as I know that code would work just fine, just set the number really low in the beggining so you can kill them off fast and see if it works.
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: Local Reinforcement Count

Post by asleeponduty »

ya it works, but I get a victory when i do that-the locals are enemies to everybody.
i do not want a victory when i kill them all.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Local Reinforcement Count

Post by bobfinkl »

This code should work just make sure that the number 10 I put is above the the locals unit count:

Code: Select all

If GetReinforcementCount(3) == 10 then
AllowAISpawn(3, false)
end
I just wrote that off the top of my head, I'm pretty sure it'll need some fixing.
Post Reply