From 9f7ae93bef2ee74c618d25c3f2f83c316b6cf66a Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Tue, 31 Jan 2017 16:15:27 -0500 Subject: [PATCH] Add permanent plot check to player_sleep --- SQF/dayz_code/actions/player_sleep.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_sleep.sqf b/SQF/dayz_code/actions/player_sleep.sqf index 3b2cac813..7306b1a66 100644 --- a/SQF/dayz_code/actions/player_sleep.sqf +++ b/SQF/dayz_code/actions/player_sleep.sqf @@ -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;