Jump to content

WeaponRangeTopUpOnRoad

From CMM Wiki
Return to CMM Command Reference
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
WeaponsRangeZoneNameTable of points that makes a polygon or Zone String
CountryIdentifier of the country for which the zone applies (e.g., 0 = all countries)
UnitTypeTableList of unit type strings to be considered when creating the top‑up zone
UnitLimitMaximum 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: