DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetLockCompatibilityType()

int Building::GetLockCompatibilityType ( int doorIdx)
inlineprivate

Which door is compatible with which key (door idx supplied). Bitwise.

Аргументы
doorIdx
Возвращает
bitwise value of all compatible locks
Заметки
you can combine the bit values like so:
return (1 << EBuildingLockType.LOCKPICK) | (1 << EBuildingLockType.SHIP_CONTAINER_1);
you can also this for each individual door idx

См. определение в файле 3_Game/DayZ/Entities/Building.c строка 167

168 {
169 return 1 << EBuildingLockType.LOCKPICK; //all doors are lockpickable by default
170 }
EBuildingLockType
Определения EBuildingLockTypes.c:2

Используется в ActionLockDoors::ActionCondition() и ActionUnlockDoors::ActionCondition().