mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
#808 downgrade doors CharID
This commit is contained in:
@@ -120,6 +120,11 @@ if ((count _upgrade) > 0) then {
|
||||
|
||||
// Get direction
|
||||
_dir = getDir _obj;
|
||||
|
||||
// Reset the character ID on locked doors before they inherit the newclassname
|
||||
if (_classname in DZE_DoorsLocked) then {
|
||||
_object setVariable ["CharacterID",dayz_characterID,true];
|
||||
};
|
||||
|
||||
_classname = _newclassname;
|
||||
|
||||
@@ -132,10 +137,6 @@ 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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user