Jump to content

GetNewGroupID

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetNewGroupID – created via PowerShell script (2025-11-11T21:12:39Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
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: