Jump to content

Dump.Statics

From CMM Wiki
Revision as of 10:12, 11 November 2025 by Ozdeadmeat (talk | contribs) (dump.Statics – created via PowerShell script (2025-11-11T21:12:49Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: dump.Statics
Function Description: Dumps a table of static object information for the current map, filtered by coalition ID, extracting group names, unit names, positions, and headings, and saves the data to a JSON file named after the mission theatre in the dump directory.
File Location: cmm.tools.lua
Syntax: CMM.dump.Statics( number coal )
Return Value: table
Parameters: Name Description
coalCoalition ID to filter static objects; defaults to 2 if not provided or invalid.
Example: CMM.dump.Statics(2)
Example Description: Retrieves static objects from coalition 2 and dumps their group and unit data into a JSON file named based on the current mission theatre.
Related Functions:
Notes: