Jump to content

DrawRaceTrack

From CMM Wiki
Return to CMM Command Reference
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
AircraftNameName of the aircraft unit to base the track on.
vec3Base position vector {x, y, z} for the center of the race‑track.
bearingBearing in degrees from North (0 = North, 90 = East).
distanceDistance 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: