Page 1 of 1
Local Reinforcement Count
Posted: Fri Aug 21, 2009 2:20 pm
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)
?
Re: Local Reinforcement Count (help needed)
Posted: Fri Aug 21, 2009 2:58 pm
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.
Re: Local Reinforcement Count
Posted: Sun Aug 30, 2009 7:12 pm
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.
Re: Local Reinforcement Count
Posted: Sun Aug 30, 2009 8:14 pm
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.