mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-08 00:09:34 +03:00
#808 downgrading door does not reset CharID
This commit is contained in:
1 parent
30611114bb
commit
fdcc6b376b
1 file changed
+6
-1
@@ -131,6 +131,11 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
// Set location
|
||||
_object setPosATL _location;
|
||||
|
||||
// Reset the character ID (esp in the case of removing a lock)
|
||||
if (_classname in DZE_DoorsLocked) then {
|
||||
_object setVariable ["CharacterID",dayz_characterID,true];
|
||||
};
|
||||
|
||||
cutText [format[(localize "str_epoch_player_142"),_text], "PLAIN DOWN", 5];
|
||||
|
||||
@@ -152,4 +157,4 @@ if ((count _upgrade) > 0) then {
|
||||
};
|
||||
|
||||
DZE_ActionInProgress = false;
|
||||
s_player_downgrade_build = -1;
|
||||
s_player_downgrade_build = -1;
|
||||
Reference in new issue
Block a user