Jump to content

FindMarker

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (FindMarker – created via PowerShell script (2025-11-11T21:12:26Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: FindMarker
Function Description: Searches for a marker by its ID within the world's marker panel and returns its index in the list or -1 if not found.
File Location: cmm.markerFunctions.lua
Syntax: CMM.FindMarker( number markid )
Return Value: number
Parameters: Name Description
markidThe MarkerID to search for within the world's marker panels.
Example: CMM.FindMarker(200)
Example Description: Returns the index of the marker with ID 200 in the world's marker list, which is 200 if it exists, otherwise -1.
Related Functions:
Notes: