{"name":"enableSaving","operator":null,"title":"enableSaving","type":"command","url":"https://community.bistudio.com/wiki/enableSaving","revid":340305,"updated":"2023-04-28T23:04:59Z","groups":["Mission Information"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Enable / disable saving of the game with an optional autosave.","syntaxes":[{"syntax":"enableSaving enable","since":null,"effect":null,"exec":null,"params":[{"name":"enable","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"enable: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"enable","types":["Boolean"]}},{"syntax":"enableSaving [enable, save]","since":null,"effect":null,"exec":null,"params":[{"name":"enable","type":"Boolean","optional":false,"default":null,"description":"allow saveGame command usage and manual saving","types":["Boolean"],"since":null,"text":"enable: Boolean - allow saveGame command usage and manual saving"},{"name":"save","type":"Boolean","optional":false,"default":null,"description":"create an autosave on command execution","types":["Boolean"],"since":null,"text":"save: Boolean - create an autosave on command execution"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[enable, save]","types":["Array"]}}],"examples":[{"text":"```sqf\nenableSaving false;        // saving disabled, does autosave - same as [false, true]\nenableSaving true;        // saving enabled, does not autosave - same as [true, false]\n\nenableSaving [false, false];    // saving disabled, does not autosave\nenableSaving [false, true];        // saving disabled, does autosave\nenableSaving [true, false];        // saving enabled, doesn't autosave\nenableSaving [true, true];        // saving enabled, does autosave\n```","code":["enableSaving false;\t\t// saving disabled, does autosave - same as [false, true]\nenableSaving true;\t\t// saving enabled, does not autosave - same as [true, false]\n\nenableSaving [false, false];\t// saving disabled, does not autosave\nenableSaving [false, true];\t\t// saving disabled, does autosave\nenableSaving [true, false];\t\t// saving enabled, doesn't autosave\nenableSaving [true, true];\t\t// saving enabled, does autosave"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["loadGame","saveGame","savingEnabled","isSaving","BIS_fnc_enableSaving"],"notes":[{"user":"POLPOX","date":"2023-01-02T11:48:55Z","text":"Also possible to disable Save and Exit button from pause menu and replaces it with Abort. (confirmed in Arma 3 2.12)"}],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Mission Information","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}