Dump.Statics
Appearance
| 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 |
| coal | Coalition 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: | ||