mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12: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:
@@ -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