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

◆ IsPlayerOnBackside()

bool DigitalCodeLock::IsPlayerOnBackside ( PlayerBase player)
inlineprotected

Checks whether the given player is standing on the physical (non-keypad) side of the lock Fails closed when the required memory points are not available

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

411 {
412 if (!player)
413 return false;
414
415 if (!MemoryPointExists(MEMPOINT_CENTER) || !MemoryPointExists(MEMPOINT_INSIDE))
416 return false;
417
418 bool playerOnInsideSide = MiscGameplayFunctions.MemPointDirectionalCheck(player, this, MEMPOINT_CENTER, MEMPOINT_INSIDE);
419
420 return playerOnInsideSide != GetReversedState();
421 }
bool GetReversedState()
Определения CodeLock.c:403
const string MEMPOINT_INSIDE
Определения CodeLock.c:3
const string MEMPOINT_CENTER
Определения CodeLock.c:4

Перекрестные ссылки GetReversedState(), MEMPOINT_CENTER и MEMPOINT_INSIDE.

Используется в ActionInteractCodeLockItem::ActionCondition(), ActionResetCodeOnCodeLock::ActionCondition(), ActionInteractCodeLockItem::OnExecuteServer() и ActionInteractCodeLockItem::SetupAction().