BattleBalancer
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | BattleBalancer | |
| Function Description: | Balances combat in a specified zone by randomly destroying units from either side when both are present. The function retrieves the current unit counts for the zone, optionally notifies players, and then uses probability calculations to decide whether to eliminate a random RED or BLUE unit. It reschedules itself after BattleBalancerTIMER seconds. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.BattleBalancer( table argTable ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| argTable | Table that has the following information {ZoneID <string>, Silent <boolean> | |
| Example: | CMM.BattleBalancer{ZoneID = "Zone 15", Silent = true} | |
| Example Description: | Demonstrates invoking the battle balancer for Zone 15 while suppressing player notifications. | |
| Related Functions: | ||
| Notes: | ||
}