Roof check for entity, limited by time (anti-spam solution)
См. определение в файле ItemBase.c строка 3961
3962 {
3963 super.CheckForRoofLimited(timeTresholdMS);
3964
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().