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

◆ CheckForRoofLimited()

override void InventoryItem::CheckForRoofLimited ( float timeTresholdMS = 3000)
inlineprotected

Roof check for entity, limited by time (anti-spam solution)

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

3962 {
3963 super.CheckForRoofLimited(timeTresholdMS);
3964
3965 float time = GetGame().GetTime();
3966 if ((time - m_PreviousRoofTestTime) >= timeTresholdMS)
3967 {
3968 m_PreviousRoofTestTime = time;
3969 SetRoofAbove(MiscGameplayFunctions.IsUnderRoof(this));
3970 }
3971 }
proto int GetTime()
returns mission time in milliseconds
proto native CGame GetGame()

Перекрестные ссылки GetGame() и CGame::GetTime().