Jump to content
Sign in to follow this  
kibaBG

Delete Previous Save

Recommended Posts

Hi, I have to ask something very dumb but ... any scripted way to delete previous saves in a mission? It's a long mission and the saves will be really too much. Is there any way via script to delete all but the last save?
I checked biki, google, forum ... nothing. 😟   
 

I made the player can deploy a tent, skip time and save automatically. The tent script is taken from the forum, I only added skipTime and saveGame.  
 

_action = ["sleeptent","Sleeping Tent","",{
_pos = screenToWorld [ 0.5, 0.5 ];
_cutter = createVehicle [ "Land_ClutterCutter_Medium_F", _pos, [], 0, "NONE" ];
_SleepBag = createVehicle [ "Land_TentDome_F", _pos, [], 0, "NONE" ];
_mrk = createMarker ["Zzz", _pos,3,player];
"Zzz" setMarkerType "loc_save";
"Zzz" setMarkerColor "colorBLUFOR";
_SleepBag attachTo [_cutter, [0,0,0.05]];
player removeItem "sc_bedroll";
_SleepBag addAction ["Sleep for 4 hours", {
												60 setOvercast (random 1);
												skipTime 4;
												sleep 2;
												saveGame;
												}, [], 0, false, true, "", ""];
_SleepBag addAction [ "Pack the sleeping bag",{ 
   _Bag = _this select 3 select 0;
   _cut = _this select 3 select 1;
   deleteVehicle _Bag; 
   deleteVehicle _cut;
   player addItem 'sc_bedroll';
deleteMarker "Zzz";   
}, [ _SleepBag, _cutter ], 0, false, true, "", ""];
},{true},{},[], [0,0,0], 100] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], _action] call ace_interact_menu_fnc_addActionToObject;

 How many autosaves are allowed in a mission? 

Share this post


Link to post
Share on other sites

Is any way possible for the player to delete a save within the mission itself?
(Without browsing mission folders outside the game)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×