mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
#808 downgrading door does not reset CharID
This commit is contained in:
@@ -132,6 +132,11 @@ if ((count _upgrade) > 0) then {
|
|||||||
// Set location
|
// Set location
|
||||||
_object setPosATL _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];
|
cutText [format[(localize "str_epoch_player_142"),_text], "PLAIN DOWN", 5];
|
||||||
|
|
||||||
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,_objectID,_objectUID,(getPlayerUID player)];
|
PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,_objectID,_objectUID,(getPlayerUID player)];
|
||||||
|
|||||||
Reference in New Issue
Block a user