PlayerInRange
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | PlayerInRange | |
| Function Description: | Returns boolean if a specific Unt is within range of the vec3 location. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.PlayerInRange( table vec3 , table Unt , number Range ) | |
| Return Value: | boolean or nil | |
| Parameters: | Name | Description |
| vec3 | vec3 table | |
| Unt | Unit object table | |
| Range | Range in meters from the vec3 point | |
| Example: | CMM.PlayerInRange({x=0,y=0,z=0}, Unt, 500) | |
| Example Description: | Returns true if the unit is within 500 meters of the specified point, otherwise returns nil. | |
| Related Functions: | ||
| Notes: | ||