Jump to content
Ravenger2709

How to automate grad-persistance save script?

Recommended Posts

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×