Jump to content

GetPlayersInRange

From CMM Wiki
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: