mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 06:02:56 +03:00
Split up save function
This commit is contained in:
@@ -52,9 +52,8 @@ if (_classname isKindOf "Bag_Base_EP1") exitWith {
|
||||
|
||||
waitUntil { !isNull (unitBackpack player) };
|
||||
uiSleep 0.03;
|
||||
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
|
||||
call player_regularSave;
|
||||
};
|
||||
|
||||
_config = (configFile >> _type >> _classname);
|
||||
|
||||
@@ -115,6 +115,5 @@ player setVariable ["sleeping",false];
|
||||
dayz_actionInProgress = false;
|
||||
|
||||
//Removed due to player sync returning []
|
||||
//PVDZ_plr_Save = [player,nil,true,dayz_playerAchievements];
|
||||
//publicVariableServer "PVDZ_plr_Save";
|
||||
//call player_regularSave;
|
||||
R3F_TIRED_Accumulator = 0;
|
||||
@@ -63,8 +63,7 @@ if !(alive _item) then {
|
||||
dayz_lastMeal = time;
|
||||
dayz_hunger = 0;
|
||||
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
call player_regularSave;
|
||||
|
||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user