DrawRaceTrack
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | DrawRaceTrack | |
| Function Description: | Draws a race‑track marker around an aircraft, creating or moving the name and orbit markers. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.DrawRaceTrack( string AircraftName , table vec3 , number bearing , number distance ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| AircraftName | Name of the aircraft unit to base the track on. | |
| vec3 | Base position vector {x, y, z} for the center of the race‑track. | |
| bearing | Bearing in degrees from North (0 = North, 90 = East). | |
| distance | Distance in meters to the farthest point on the track. | |
| Example: | CMM.DrawRaceTrack("AWACS-1", {x=10000, y=0, z=20000}, 90, 5000) | |
| Example Description: | Draws a race‑track around the AWACS unit “AWACS‑1” with a 5 km radius and bearing of 90°. | |
| Related Functions: | ||
| Notes: | ||