Jump to content

GetUnits

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetUnits – created via PowerShell script (2025-11-11T21:12:12Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetUnits
Function Description: Scans an area of Units from a specified point and radius
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetUnits( table vec3 , number radius )
Return Value: table or nil
Parameters: Name Description
vec3vec3 style table
radiusRadius number
Example: CMM.GetUnits({x= -5876.3718701885, y= 82.957648265182, z= 253040.25411956}, 1000)
Example Description: Returns a list of units within 1000m of the point provided.
Related Functions:
Notes: