FindNearestCaptureTruck
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | FindNearestCaptureTruck | |
| Function Description: | Finds the nearest capture truck unit to a given position. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.FindNearestCaptureTruck( table position ) | |
| Return Value: | table or nil | |
| Parameters: | Name | Description |
| position | vec3 position to search from | |
| Example: | local truck = CMM.FindNearestCaptureTruck({x=0,y=0,z=0}) | |
| Example Description: | Returns the capture truck unit closest to the given coordinates. | |
| Related Functions: | ||
| Notes: | ||