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

◆ SetCooldown()

void SetCooldown ( float time,
EFightLogicCooldownCategory cooldownCategory )
protected

stops currently running cooldown timer (for specific category)

param for ResetCooldown

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

793 {
795 if ( m_CooldownTimers.Get(cooldownCategory).IsRunning() )
796 {
797 m_CooldownTimers.Get(cooldownCategory).Stop();
798 }
799
801 Param1<int> param = new Param1<int>(cooldownCategory);
802 m_CooldownTimers.Get(cooldownCategory).Run(time, this, "ResetCooldown", param);
803 }
ref map< int, ref Timer > m_CooldownTimers

Перекрестные ссылки m_CooldownTimers.