GetMarkerPoint
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | GetMarkerPoint | |
| Function Description: | Converts and logs the marker position from a 3D vector to either a 2D or 3D vector format, depending on the input flag, and outputs the location to the log file. | |
| File Location: | cmm.MapCommandFunctions.lua | |
| Syntax: | CMM.GetMarkerPoint( table EventData , boolean doVec2 ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| EventData | Custom Event Table passed by S_EVENT_MARK_REMOVED EventHandler, contains pos field for position. | |
| doVec2 | If true, converts the position to a 2D vector and logs x and y; if false, logs full 3D coordinates (x, y, z). | |
| Example: | CMM.GetMarkerPoint({pos = <vec3>}, true) | |
| Example Description: | Converts the 3D or 2D position to a string and writes it to the dcs.log file. | |
| Related Functions: | ||
| Notes: | Map Command !point & !point2 | |