Jump to content

GetPlayersInRange

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetPlayersInRange – created via PowerShell script (2025-11-11T21:12:09Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetPlayersInRange
Function Description: Returns a table of player units within the specified range from a vec3 point.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.GetPlayersInRange( table Vec3 , number Range )
Return Value: table or nil
Parameters: Name Description
Vec3vec3 table
RangeRange in meters from the vec3 point
Example: local players = CMM.GetPlayersInRange({x=0,y=0,z=0}, 500)
Example Description: Returns player units within the specified range from a point.
Related Functions:
Notes: