Jump to content

AddSpecialGroup

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (AddSpecialGroup – created via PowerShell script (2025-11-11T21:12:40Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: AddSpecialGroup
Function Description: Adds a group to a special group collection based on its name prefix, filtering only groups that match the capture truck naming convention and storing them in CMM.SPECIALGROUPS.capturetruck.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.AddSpecialGroup( table or string Grp )
Return Value: nil
Parameters: Name Description
GrpEither a group name string or a group table with an id_ field; if a table, it must contain an id_ field to be considered valid.
Example: CMM.AddSpecialGroup("Blue_CaptureTruck_01")
Example Description: Adds the group named "Blue_CaptureTruck_01" to the capturetruck special group list based on naming convention.
Related Functions:
Notes: