MarkLasedTarget
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | MarkLasedTarget | |
| Function Description: | Draws a small red “laser” marker at the supplied world position. | |
| File Location: | cmm.drawFunctions.lua | |
| Syntax: | CMM.MarkLasedTarget( table vec3 , number size , table colour , table colourFill ) | |
| Return Value: | number | |
| Parameters: | Name | Description |
| vec3 | vec3 {x = _, y = _, z = _} representing the laser origin in world coordinates. | |
| size | Optional; width of the marker in meters (default = 80). | |
| colour | Optional RGBA table ({r,g,b,a}). Defaults to CMM.Marker.Colour.LASERred. | |
| colourFill | Optional RGBA fill for the marker’s interior; defaults to CMM.Marker.Colour.LASERredFill. | |
| Example: | CMM.MarkLasedTarget({x=1000,y=200,z=-500}, 120, {r=1,g=0,b=0,a=1}, {r=1,g=0,b=0,a=0.5}) | |
| Example Description: | Places a laser marker at the point (1000 m E, 200 m N, ‑500 m altitude) with a 120 m width and semi‑transparent red fill. | |
| Related Functions: | ||
| Notes: | ||