CoalitionPlayersInRange
Appearance
| 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 |
| Vec3 | vec3 table | |
| Coalition | Coalition Number of owner [0 = neutral, 1 = red, 2 = blue] | |
| Range | Range 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: | ||