Jump to content

GetMarkerPoint

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetMarkerPoint – created via PowerShell script (2025-11-11T21:12:23Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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
EventDataCustom Event Table passed by S_EVENT_MARK_REMOVED EventHandler, contains pos field for position.
doVec2If 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