Ravenger2709 0 Posted October 27, 2021 Hi! I used this script in my mission. On #save command with admin privelegies it`s work fine, but i want to autosave my mission. Added this to init.sqf : while {true} do { sleep 10; [true, 10] remoteExec ["grad_persistence_fnc_saveMission",2,false]; }; but it`s only save player state, not vehicles, storages and ect. Can anybody help my to write right script? What i do wrong? Do i call function. that print #save command to global chat or something else? Thx. Share this post Link to post Share on other sites
baton1990 30 Posted October 27, 2021 Hellow, check this script's page https://github.com/gruppe-adler/grad-persistence/wiki/Configuration . I think you need make file description.ext and add lines: saveUnits = 2; saveVehicles = 1; //0 - disable save, 1- save vehs placed in 3d editor, 2- all objects, 3 - only objects that were created during the mission (either user placed or by script/module/Zeus) saveContainers = 1; saveStatics = 1; saveGradFortificationsStatics = 3; saveMarkers = 0; saveTasks = 0; saveTriggers = 0; Saving some objects/vehicles dont work because you dont turn on such script function. Share this post Link to post Share on other sites
baton1990 30 Posted October 27, 2021 Aswell recommend you to make some action/radio command to reset saves/mission Data for mission restart ability. Here it description https://github.com/gruppe-adler/grad-persistence/wiki/clearMissionData Share this post Link to post Share on other sites
FenixDK 0 Posted November 8, 2021 On 10/27/2021 at 10:47 AM, Ravenger2709 said: Hi! I used this script in my mission. On #save command with admin privelegies it`s work fine, but i want to autosave my mission. Added this to init.sqf : while {true} do { sleep 10; [true, 10] remoteExec ["grad_persistence_fnc_saveMission",2,false]; }; but it`s only save player state, not vehicles, storages and ect. Can anybody help my to write right script? What i do wrong? Do i call function. that print #save command to global chat or something else? Thx. I am using the same setup, so let me know if what @baton1990 wrote didn't help, but I am sure it will help. Share this post Link to post Share on other sites