Jump to content

GetNewMarkerID

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetNewMarkerID – 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: GetNewMarkerID
Function Description: Generates a new unused marker ID by checking against existing allocated IDs and returning the first available one, with a fallback to -1 if no ID can be found after extensive retries.
File Location: cmm.markerFunctions.lua
Syntax: CMM.GetNewMarkerID( )
Return Value: number
Parameters: Name Description
Example: CMM.GetNewMarkerID()
Example Description: Returns a unique marker ID such as 205, which has not been previously used in the mission, ensuring no conflicts with existing markers.
Related Functions:
Notes: