push change back to gvar

debug
This commit is contained in:
vbawol 2017-09-27 08:58:36 -05:00
parent 6158c10a81
commit 5db8af19f8
2 changed files with 6 additions and 1 deletions

View File

@ -72,8 +72,9 @@ if !(_powerSources isEqualTo[]) then {
};
};
// alive time handler
_playerAliveTime = round(_playerAliveTime + (_tickTime - _clientAliveTimer));
missionNamespace setVariable [_playerAliveTimeKey, _playerAliveTime];
_clientAliveTimer = _tickTime;
// force update after 60 seconds

View File

@ -17,6 +17,10 @@ EPOCH_forceUpdateNow = false;
// start alive timer
_clientAliveTimer = diag_tickTime;
if (isNil "_playerEnergyKey") then {
diag_log "DEBUG: _playerEnergyKey not set"
};
// init player stat vars
_customVarsInit = ["CfgEpochClient", "customVarsDefaults", EPOCH_customVarsDefaults] call EPOCH_fnc_returnConfigEntryV2;
_customVarNames = _customVarsInit apply {_x param [0,""]};