Jump to content

CoalitionPlayersInRange

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (CoalitionPlayersInRange – created via PowerShell script (2025-11-11T21:12:10Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: CoalitionPlayersInRange
Function Description: Returns the number of players in range for a given coalition around a vec3 point.
File Location: cmm.DCSFunctions.lua
Syntax: CMM.CoalitionPlayersInRange( table Vec3 , number Coalition , number Range )
Return Value: number or nil
Parameters: Name Description
Vec3vec3 table
CoalitionCoalition Number of owner [0 = neutral, 1 = red, 2 = blue]
RangeRange in meters from the vec3 point
Example: CMM.CoalitionPlayersInRange({x=0,y=0,z=0}, 1, 500)
Example Description: Returns the number of players within 500 m of point (0,0,0) for coalition 1.
Related Functions:
Notes: