GetNewGroupID
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | GetNewGroupID | |
| Function Description: | Generates and returns a unique group ID by incrementing a persistent counter, ensuring no duplicate IDs are assigned across group creations. | |
| File Location: | cmm.spawnFunctions.lua | |
| Syntax: | CMM.GetNewGroupID( ) | |
| Return Value: | number | |
| Parameters: | Name | Description |
| Example: | local newID = CMM.GetNewGroupID() | |
| Example Description: | Retrieves a new unique group ID for use in group management, initializing the counter if not already set. | |
| Related Functions: | ||
| Notes: | ||