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

◆ IsPlacementPermitted()

bool Hologram::IsPlacementPermitted ( )
inlineprotected

Checks if the item can be legally placed (usually checked by action as well)

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

808 {
809 if (CfgGameplayHandler.GetDisableIsPlacementPermittedCheck())
810 return true;
811
812 bool isTrue = m_Parent && m_Parent.CanBePlaced(m_Player, GetProjectionPosition());
813
814 #ifdef DIAG_DEVELOPER
815 DebugText("IsPlacementPermitted(must be true): ", true, isTrue, " (Note: ItemBase::CanBePlaced() return value)");
816 #endif
817 return isTrue;
818 }
ItemBase m_Parent
Определения Hologram.c:21
PlayerBase m_Player
Определения Hologram.c:23
vector GetProjectionPosition()
Определения Hologram.c:1445

Перекрестные ссылки CfgGameplayHandler::GetDisableIsPlacementPermittedCheck(), GetProjectionPosition(), m_Parent и m_Player.

Используется в EvaluateCollision().