mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Add permanent plot check to player_sleep
This commit is contained in:
@@ -30,7 +30,11 @@ _blood = 0;
|
||||
_cureAttempt = 0;
|
||||
_lastRest = player getVariable ["lastRest", 0];
|
||||
_tent = _this select 3;
|
||||
_isOwner = (_tent getVariable ["characterID","0"]) == dayz_characterID;
|
||||
if (DZE_permanentPlot) then {
|
||||
_isOwner = (_tent getVariable ["ownerPUID","0"]) == dayz_playerUID;
|
||||
} else {
|
||||
_isOwner = (_tent getVariable ["characterID","0"]) == dayz_characterID;
|
||||
};
|
||||
|
||||
while {r_doLoop} do {
|
||||
_isAsleep = (animationState player) in _sleepArray;
|
||||
|
||||
Reference in New Issue
Block a user