Jump to content

InitialiseMissionDirectories: Difference between revisions

From CMM Wiki
initialiseMissionDirectories – created via PowerShell script (2026-01-01T06:03:09Z)
 
m InitialiseMissionDirectories – created via PowerShell script (2026-02-11T01:16:14Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          initialiseMissionDirectories|fDescription=  initialises mission-specific directories such as mission, player, save, and cache folders by attempting to create them recursively if they do not already exist. Validates the mission name and directory paths before creating directories, providing informative logs for each operation.|parentFile=    cmm.load.lua|syntax=        CMM.initialiseMissionDirectories()|return=        |returnDesc=    |example=        CMM.initialiseMissionDirectories()|exampleDesc=    Calls the function to ensure all mission directories are created or already exist, logging actions for each directory creation attempt.|related=        |note=          |envType= CMM}}
{{Template:FunctionInfo|fName=          InitialiseMissionDirectories|fDescription=  Checks if config, persistence and scripts folders exist in the specified mission directory|parentFile=    cmm.initialisation.lua|syntax=        CMM.InitialiseMissionDirectories()|return=        nil|returnDesc=    Returns nothing, but will create directories if they do not exist.|example=        CMM.InitialiseMissionDirectories()|exampleDesc=    Checks that the config, persistence and scripts directories exist in the mission directory, creating them if they do not.|related=        |note=          |envType= CMM}}

Latest revision as of 14:16, 10 February 2026

Return to CMM Command Reference
Environment: Mission Scripting
Function: InitialiseMissionDirectories
Function Description: Checks if config, persistence and scripts folders exist in the specified mission directory
File Location: cmm.initialisation.lua
Syntax: CMM.InitialiseMissionDirectories( )
Return Value: nil
Parameters: Name Description
Example: CMM.InitialiseMissionDirectories()
Example Description: Checks that the config, persistence and scripts directories exist in the mission directory, creating them if they do not.
Related Functions:
Notes: