AddSpecialGroup
Appearance
| 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 |
| Grp | Either 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: | ||