GetNewMarkerID: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) m GetNewMarkerID – created via PowerShell script (2026-02-11T01:16:39Z) Tag: Manual revert |
Ozdeadmeat (talk | contribs) m GetNewMarkerID – created via PowerShell script (2026-06-24T22:27:00Z) Tags: Manual revert Reverted |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= GetNewMarkerID|fDescription= Generates a | {{Template:FunctionInfo|fName= GetNewMarkerID|fDescription= 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.|parentFile= cmm.markerFunctions.lua|syntax= CMM.GetNewMarkerID()|return= number|returnDesc= A new unused marker ID that has not been allocated in the MarkerPanels table, or -1 if no valid ID could be found.|example= CMM.GetNewMarkerID()|exampleDesc= Returns a unique marker ID such as 205, which has not been previously used in the mission, ensuring no conflicts with existing markers.|related= |note= |envType= CMM}} | ||
Revision as of 12:26, 24 June 2026
| 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: | ||