GetAllGroundInRange
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | GetAllGroundInRange | |
| Function Description: | Returns a table of ground units from both red and blue coalitions within a specified range of a given position. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.GetAllGroundInRange( table Position , number Range ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| Position | vec3 position to search from | |
| Range | Range in meters; capped at 1500 meters if greater | |
| Example: | CMM.GetAllGroundInRange({x=0,y=0,z=0}, 1000) | |
| Example Description: | Finds all ground units from both red and blue coalitions within the specified range of the position. Returns a table with red units in index 1 and blue units in index 2. Range is limited to a maximum of 1500 meters. Returns empty tables if no units are found. | |
| Related Functions: | ||
| Notes: | --TODO Function is in MVP state, needs finalizing | |