mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Add permanent plot check to player_sleep
This commit is contained in:
@@ -30,7 +30,11 @@ _blood = 0;
|
|||||||
_cureAttempt = 0;
|
_cureAttempt = 0;
|
||||||
_lastRest = player getVariable ["lastRest", 0];
|
_lastRest = player getVariable ["lastRest", 0];
|
||||||
_tent = _this select 3;
|
_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 {
|
while {r_doLoop} do {
|
||||||
_isAsleep = (animationState player) in _sleepArray;
|
_isAsleep = (animationState player) in _sleepArray;
|
||||||
|
|||||||
Reference in New Issue
Block a user