Jump to content

SearchObjects

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (SearchObjects – 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: SearchObjects
Function Description: Scans an area of SearchObjects from a specified point and radius
File Location: cmm.DCSFunctions.lua
Syntax: CMM.SearchObjects( number objectCat , table vec3 , number radius )
Return Value: table or nil
Parameters: Name Description
objectCatObject.Category Number: Object.Category.UNIT, Object.Category.WEAPON, Object.Category.STATIC, Object.Category.BASE, Object.Category.SCENERY, Object.Category.CARGO
vec3vec3 style table
radiusRadius number
Example: CMM.SearchObjects({x= -5876.3718701885, y= 82.957648265182, z= 253040.25411956}, 1000)
Example Description: Returns a list of v within 1000m of the point provided.
Related Functions:
Notes: