Jump to content

FindMarker

From CMM Wiki
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: