Add permanent plot check to player_sleep

This commit is contained in:
ebaydayz
2017-01-31 16:15:27 -05:00
parent 9afb74ff26
commit 9f7ae93bef

View File

@@ -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;