DayZ 1.28
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 строка 4031

4032 {
4033 super.CheckForRoofLimited(timeTresholdMS);
4034
4035 float time = GetGame().GetTime();
4036 if ((time - m_PreviousRoofTestTime) >= timeTresholdMS)
4037 {
4038 m_PreviousRoofTestTime = time;
4039 SetRoofAbove(MiscGameplayFunctions.IsUnderRoof(this));
4040 }
4041 }
proto int GetTime()
returns mission time in milliseconds
proto native CGame GetGame()

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