GetNewMarkerID: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) m GetNewMarkerID – created via PowerShell script (2025-11-11T21:12:43Z) |
Ozdeadmeat (talk | contribs) m GetNewMarkerID – created via PowerShell script (2026-01-01T06:03:16Z) 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 19:03, 31 December 2025
| 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: | ||