Jump to content

FindNearestGroup

From CMM Wiki
Revision as of 12:26, 24 June 2026 by Ozdeadmeat (talk | contribs) (FindNearestGroup – created via PowerShell script (2026-06-24T22:26:40Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: FindNearestGroup
Function Description: Returns the nearest group to a given position, optionally filtered by coalition or group category.-- TODO Function incomplete
File Location: cmm.DCSFunctions.lua
Syntax: CMM.FindNearestGroup( table position , number or nil radius )
Return Value: table or nil
Parameters: Name Description
positionvec3 position to search from
radiusradius in meters to limit the search (default is 2500m)
Example: CMM.FindNearestGroup({x=0,y=0,z=0}, 1, 2)
Example Description: Returns the nearest group to the specified position, filtered by coalition and group type. Returns nil if no group is found within the search radius.
Related Functions:
Notes: