WeaponRangeTopUpOnRoad
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | WeaponRangeTopUpOnRoad | |
| Function Description: | Adds a weapon‑range top‑up zone on roads within the specified area for the given country and unit types, up to the specified limit. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.WeaponRangeTopUpOnRoad( string or table WeaponsRangeZoneName , number Country , table UnitTypeTable , number UnitLimit ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| WeaponsRangeZoneName | Table of points that makes a polygon or Zone String | |
| Country | Identifier of the country for which the zone applies (e.g., 0 = all countries) | |
| UnitTypeTable | List of unit type strings to be considered when creating the top‑up zone | |
| UnitLimit | Maximum number of units that may occupy the zone at once | |
| Example: | CMM.WeaponRangeTopUpOnRoad("Zone1", 0, {"Trucks","Car"}, 10) | |
| Example Description: | Creates a weapon‑range top‑up zone on roads inside "Zone1" for all countries, limiting the zone to 10 units of type F‑16 or MiG‑29. | |
| Related Functions: | ||
| Notes: | ||