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

◆ CanDoorBeLocked()

bool Building::CanDoorBeLocked ( int doorIndex)
inlineprotected

Check if the door is closed and if the door is unlocked.

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

181 {
182 return (!IsDoorOpen(doorIndex) && !IsDoorLocked(doorIndex));
183 }
proto native bool IsDoorLocked(int index)
When the door is locked.
proto native bool IsDoorOpen(int index)
When the door is requested to be fully open (animation wanted phase is greater than 0....

Перекрестные ссылки IsDoorLocked() и IsDoorOpen().

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