LoadSupportTable
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | LoadSupportTable | |
| Function Description: | Loads an air support configuration table from a JSON file in the mission directory, clears specific marker fields to prevent conflicts, and falls back to default values if the file is missing or invalid. | |
| File Location: | cmm.persistence.lua | |
| Syntax: | CMM.LoadSupportTable( string FilePath ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| FilePath | Optional path to the AirSupportTable.json file; if not provided, defaults to CMM.MISSION.PDir .. "AirSupportTable.json". | |
| Example: | CMM.LoadSupportTable("Custom/AirSupportTable.json") | |
| Example Description: | Loads a custom air support table from a specified JSON file, clears MarkerIdName and MarkerIdOrbit fields to avoid data corruption, and uses defaults if the file is missing. | |
| Related Functions: | ||
| Notes: | ||