script to set a reinforcement counter for local faction ?

Started by wsa30h, June 24, 2019, 09:27:04 AM

Previous topic - Next topic
is there a script to limit how many locals can spawn ?
like a add deathmatch goal but  for locals ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

June 24, 2019, 10:17:38 AM #1 Last Edit: June 24, 2019, 10:23:43 AM by Dark_Phantom
You can set how many locals will spawn in "AddUnitClass("tusken",3) and SetUnitCount(3,20)"
Some more information about locals:

  • You cannot set a finite limit to the team. (there isn't a counter like 200 for them, like with teams 1 and 2)
  • Team 3, if unallied or an enemy, will spawn however many units are set in the AddUnitClass/SetUnitCount (should be equal) for the duration of the battle unless they run out of CPs
  • Team 3, if allied with one side, will spawn up to SetUnitCount or the reinforcement count of Ally Team, whichever is less.  So if the Rebels are allied with the Wookiees, the Wookiees will spawn 20 reinforcements until Rebel reinforcement count < 20, then it will count down with it.  If the rebels have 5, Wookiees have 5.
  • To get around this issue, you can use "SetTeamAsNeutral" and "SetTeamAsEnemy".  The neutral team will not have to worry about purposefully getting shot and there is not a limit set like the Ally Team.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

thanks i guess its fine the way it is.
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh