hello,
I created a mod map, where every team is starting with one cp. theres also a "team 0" cp (grey). I want that, if this cp is taken by one team, that the reinforcement tickets of the other team starts slowly to bleed. how do I correctly set the AddBleedThreshold command in lua?
thanks in advance!
AddBleedThreshold lua command
Moderator: Moderators
-
deagle
- Private Second Class
- Posts: 60
- Joined: Wed Mar 10, 2010 4:03 pm
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
Re: AddBleedThreshold lua command
here. try tweaking these stats and adding them to you lua to replace what ever would be using these commands.
-- Attacker Stats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 250)
AddBleedThreshold(ATT, 31, 0.0)
AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 2.25)
AddBleedThreshold(ATT, 1, 3.0)
-- Defender Stats
SetUnitCount(DEF, 25)
SetReinforcementCount(DEF, 250)
AddBleedThreshold(DEF, 31, 0.0)
AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 2.25)
AddBleedThreshold(DEF, 1, 3.0)
-- Attacker Stats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 250)
AddBleedThreshold(ATT, 31, 0.0)
AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 2.25)
AddBleedThreshold(ATT, 1, 3.0)
-- Defender Stats
SetUnitCount(DEF, 25)
SetReinforcementCount(DEF, 250)
AddBleedThreshold(DEF, 31, 0.0)
AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 2.25)
AddBleedThreshold(DEF, 1, 3.0)
