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

◆ CanDetachCodeLock()

bool DigitalCodeLock::CanDetachCodeLock ( notnull PlayerBase player,
int componentIndex )
inlineprotected

Condition check called from ActionTakeItem and ActionTakeItemToHands.

GetReversedState is used to check if code lock is mounted on reversible doors

См. определение в файле CodeLock.c строка 216

217 {
218 if (HasValidParent() && !IsLocked())
219 {
221 if (!GetReversedState() && !MiscGameplayFunctions.MemPointDirectionalCheck(player, this, DigitalCodeLock.MEMPOINT_CENTER, DigitalCodeLock.MEMPOINT_INSIDE))
222 return false;
223 }
224
225 return true;
226 }
bool HasValidParent()
Определения CodeLock.c:423
void DigitalCodeLock()
Определения CodeLock.c:23
bool GetReversedState()
Определения CodeLock.c:403
bool IsLocked()
Определения CodeLock.c:373

Перекрестные ссылки DigitalCodeLock(), GetReversedState(), HasValidParent() и IsLocked().

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