ResetZoneData: Difference between revisions
Appearance
Ozdeadmeat (talk | contribs) ResetZoneData – created via PowerShell script (2025-11-11T21:12:55Z) Tag: Recreated |
Ozdeadmeat (talk | contribs) m ResetZoneData – created via PowerShell script (2026-01-01T06:03:46Z) |
||
| Line 1: | Line 1: | ||
{{Template:FunctionInfo|fName= ResetZoneData|fDescription= Resets the CMM.ZONE.STATE and CMM.ZONE.SITREP global tables by initializing them with zero unit counts and default zone metadata for all defined zones.|parentFile= cmm.ZoneFunctions.lua|syntax= CMM.ResetZoneData()|return= nil|returnDesc= Returns nothing; ensures both state and sitrep tables are | {{Template:FunctionInfo|fName= ResetZoneData|fDescription= Resets the CMM.ZONE.STATE and CMM.ZONE.SITREP global tables by initializing them with zero unit counts and default zone metadata for all defined zones.|parentFile= cmm.ZoneFunctions.lua|syntax= CMM.ResetZoneData()|return= nil|returnDesc= Returns nothing; ensures both state and sitrep tables are initialised with consistent default values for all zones.|example= CMM.ResetZoneData()|exampleDesc= Clears all existing zone data and reinitialises both state and sitrep tables with zero unit counts and default zone identifiers for every zone defined in the mission.|related= |note= |envType= CMM}} | ||
Latest revision as of 19:03, 31 December 2025
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | ResetZoneData | |
| Function Description: | Resets the CMM.ZONE.STATE and CMM.ZONE.SITREP global tables by initializing them with zero unit counts and default zone metadata for all defined zones. | |
| File Location: | cmm.ZoneFunctions.lua | |
| Syntax: | CMM.ResetZoneData( ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| Example: | CMM.ResetZoneData() | |
| Example Description: | Clears all existing zone data and reinitialises both state and sitrep tables with zero unit counts and default zone identifiers for every zone defined in the mission. | |
| Related Functions: | ||
| Notes: | ||