Local Reinforcements
Moderator: Moderators
-
FOOLIS
- Jedi

- Posts: 1038
- Joined: Tue Jan 16, 2007 3:59 pm
- Location: Germany
Local Reinforcements
Hey ,
I want that my local team only has 3 reinforcements .
How can i do that :
My current local team descrption looks like this :
SetTeamName(3, "locals")
AddUnitClass(3,"snw_inf_wampa",3)
SetUnitCount(3,3)
AddAIGoal(3, "Deathmatch", 3)
SetTeamAsFriend(DEF,3)
SetTeamAsFriend(3,DEF)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)
I want that my local team only has 3 reinforcements .
How can i do that :
My current local team descrption looks like this :
SetTeamName(3, "locals")
AddUnitClass(3,"snw_inf_wampa",3)
SetUnitCount(3,3)
AddAIGoal(3, "Deathmatch", 3)
SetTeamAsFriend(DEF,3)
SetTeamAsFriend(3,DEF)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)
-
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: Local Reinforcements
I don't think you can assign them reinforcements...
-
Adjuntant_Reflex
- Rebel Warrant Officer

- Posts: 312
- Joined: Fri Aug 31, 2007 4:47 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Home... Where else?
Re: Local Reinforcements
Everything is possible when you modCaleb1117 wrote:I don't think you can assign them reinforcements...
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Local Reinforcements
Actually what you have there should work, you are setting the limit to 3 units with a minimum of 3 at once if I read my lua correctly from when I had swampas in Sewers.
This is what I had in place The set unit count is 3 = team 4 = number of units
This is what I had in place The set unit count is 3 = team 4 = number of units
Code: Select all
SetTeamName (3, "locals")
AddUnitClass (3, "snw_inf_wampa",1,1)
AddUnitClass (3, "geo_inf_acklay",1,2)
SetUnitCount (3,4)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF) -
FOOLIS
- Jedi

- Posts: 1038
- Joined: Tue Jan 16, 2007 3:59 pm
- Location: Germany
Re: Local Reinforcements
Eh i mean that when 3 locals died that noone of them respawn .
-
Penguin
- Jedi Admin

- Posts: 2541
- Joined: Sun Mar 05, 2006 12:00 am
- Location: Australia
Re: Local Reinforcements
As far as I know, you can't set locals up with reinforcements, but you can always try, since I never have.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Local Reinforcements
You could just script it as an ambush, like I mentioned. Then only three will show up. Even if you didn't want it as an ambush, per se, you could still script it as one and just make it so that the ambush is triggered the first time someone spawns.
-
The_Emperor
- Supreme Galactic Ruler
- Posts: 2118
- Joined: Sat Dec 10, 2005 6:30 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Waaaaay over there.
Re: Local Reinforcements
A solid workaround.Maveritchell wrote:You could just script it as an ambush, like I mentioned. Then only three will show up. Even if you didn't want it as an ambush, per se, you could still script it as one and just make it so that the ambush is triggered the first time someone spawns.
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Local Reinforcements
As far as I remember Swampa would respawn because after killing one there would be another one to take it's place and he'd kill me
One thing I did just notice is you have locals set as both friend and enemy of the "def" team they have to be one or the other plus you should set the relationship to the "att" team as well.
One thing I did just notice is you have locals set as both friend and enemy of the "def" team they have to be one or the other plus you should set the relationship to the "att" team as well.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Local Reinforcements
Actually, if they're set as both it'll just -I believe - read the last set of SetTeamAsEtc, which in this case will set the team as the enemy.FragMe! wrote:One thing I did just notice is you have locals set as both friend and enemy of the "def" team they have to be one or the other plus you should set the relationship to the "att" team as well.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Local Reinforcements
Did you ever try SetReinforcementCount( teamNumber, reinforcementCount ) ?
