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

◆ IsPlayerUnderground()

bool IsPlayerUnderground ( PlayerBase player)
protected

Enclosed / dark space check. The debug HUD exposes "Under roof" / "In Shadow" / "Inside" states, so use whatever your project exposes for that. Adjust the body to match the real API (e.g. an underground-presence enum from the sandstorm system).

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

723 {
724 if (!player)
725 return false;
726
727 // Prefer a dedicated check if available:
728 // return player.IsUnderground();
729 // Fallback using the roof/shadow signals shown on the debug overlay:
730 return player.GetUndergroundPresence() != EUndergroundPresence.NONE;
731 }
EUndergroundPresence
Определения UndergroundHandlerClient.c:2

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