mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-04 15:36:34 +03:00
Also update objects if player is dead in onPlayerDisconnect
I just noticed before 5f0c2fc this was also running if the player was
dead. Now it will run if the player is alive in playerSync otherwise it
will run here if they are dead.
This commit is contained in:
1 parent
a60556e8a3
commit
f3ccb74eab
1 file changed
+3
@@ -74,6 +74,9 @@ if (_characterID != "?") exitwith {
|
||||
//diag_log format["playerID %1 added to ghost list",_playerUID];
|
||||
};
|
||||
};
|
||||
} else {
|
||||
//Done in server_playerSync above if player is alive
|
||||
{[_x,"gear"] call server_updateObject} count (nearestObjects [_playerPos,DayZ_GearedObjects,10]);
|
||||
};
|
||||
|
||||
[_playerUID,_characterID,2,_playerName] call dayz_recordLogin;
|
||||
|
||||
Reference in new issue
Block a user