Saving Objects - gruppe-adler/grad-persistence GitHub Wiki

Save objects by setting the relevant attributes in CfgGradPersistence to >1.

When saving editor-placed objects, the variable name of an object will be saved and restored on mission load. If an object with the saved variable name already exists, that object will be used instead of spawning a new one. What that means is if you want to save editor objects, but don't want to delete them before your mission is played for the second time, your editor objects must have a variable name assigned! Otherwise a duplicate will be spawned when loading.

Values

Value Explanation
0 disabled
1 editor-placed objects only
2 all objects
3 only objects that were created during the mission (either user placed or by script/module/Zeus)

Attributes

Attribute Default Value Explanation
saveUnits 1 0/1/2/3 - AI units.
saveVehicles 1 0/1/2/3 - Vehicles, static weapons, certain objects.
saveContainers 1 0/1/2/3 - Containers such as ammo boxes.
saveStatics 1 0/1/2/3 - Static objects such as houses, walls, trees, etc. excluding those created with grad-fortifications.
saveGradFortificationsStatics 3 0/3 - Static objects that were created with grad-fortifications during mission runtime.