GetNewMarkerID
Appearance
| 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: | ||