Usage - gruppe-adler/grad-persistence GitHub Wiki

Loading

With loadOnMissionStart the mission is loaded automatically.

To load the mission manually (excluding players) you can use grad_persistence_fnc_loadMission.

To load all players you can use grad_persistence_fnc_loadAllPlayers.

Saving

JIP and disconnecting players are saved automatically. Saving the mission needs to be done manually with grad_persistence_fnc_saveMission.

Chatcommands

The following chatcommands only work for logged in admins, not for voted in admins.

#gradPersistenceLoad
Loads the mission manually, excluding players (which are typically loaded on connect).

#gradPersistenceLoadPlayers
Loads all connected players. Reloads players that were already loaded.

#gradPersistenceLoadPlayer
Load a single player by their name. Do not use quotes. Name is not case sensitive. Example: #gradPersistenceLoadPlayer mcdiod

#gradPersistenceLoadPlayer
Load a single player by their UID. Do not use quotes. Example: #gradPersistenceLoadPlayer 76564218044320063

#gradPersistenceSave
Manually saves the entire mission, including players, according to configuration.

Exclusions

You can exclude objects/groups from saving by setting the variable grad_persistence_isExcluded to true.

Example:

if (isServer) then {
    _group setVariable ['grad_persistence_isExcluded',true];
    _unit setVariable ['grad_persistence_isExcluded',true];
    _object setVariable ['grad_persistence_isExcluded',true];
    _playerUnit setVariable ['grad_persistence_isExcluded',true];
};

Next Page

That's all you need to know. There are a number of functions that can further help you with mission implementation.

⚠️ **GitHub.com Fallback** ⚠️