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

◆ CheckPowerSource()

void Hologram::CheckPowerSource ( )
inlineprotected

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

977 {
978 //in range of its power source.
979 if (m_Player && m_Parent && m_Parent.HasEnergyManager() && m_Parent.GetCompEM().IsPlugged())
980 {
981 // Unplug the device when the player is too far from the power source.
982 m_Parent.GetCompEM().UpdatePlugState();
983
984 // Delete local hologram when plug is rippled out and advanced placement is active
985 if (GetGame().IsMultiplayer() && GetGame().IsClient())
986 {
987 if (!m_Parent.GetCompEM().IsPlugged())
988 m_Player.TogglePlacingLocal();
989 }
990 }
991 }
ItemBase m_Parent
Определения Hologram.c:21
PlayerBase m_Player
Определения Hologram.c:23
proto native CGame GetGame()

Перекрестные ссылки GetGame(), m_Parent и m_Player.

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