Jump to content

GetGroupPoints

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (GetGroupPoints – created via PowerShell script (2025-11-11T21:12:37Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: GetGroupPoints
Function Description: Retrieves the route points for a specified group by searching through coalition data, country data, and object category data to locate matching group entries. It returns a table of points if found, otherwise returns nil.
File Location: cmm.positionFunctions.lua
Syntax: CMM.GetGroupPoints( string or number groupIdent )
Return Value: table or nil
Parameters: Name Description
groupIdentEither a string name of a group or a number ID of the group; if invalid, an error is logged and nil is returned.
Example: CMM.GetGroupPoints("RedGroup")
Example Description: Fetches route points for a group named "RedGroup" from the mission data structure and returns the list of points as a table.
Related Functions:
Notes: