DayZ 1.29
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 строка 858

859 {
860 if (CfgGameplayHandler.GetDisableIsPlacementPermittedCheck())
861 return true;
862
863 bool isTrue = m_Parent && m_Parent.CanBePlaced(m_Player, GetProjectionPosition());
864
865 #ifdef DIAG_DEVELOPER
866 DebugLog("IsPlacementPermitted(must be true): ", true, isTrue, " (Note: ItemBase::CanBePlaced() return value)");
867 #endif
868 return isTrue;
869 }
ItemBase m_Parent
Определения Hologram.c:21
PlayerBase m_Player
Определения Hologram.c:23
vector GetProjectionPosition()
Определения Hologram.c:1494

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

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