GetPlayersInRange
Appearance
| 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 |
| Vec3 | vec3 table | |
| Range | Range 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: | ||