DayZ 1.27
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 строка 786

787 {
789 if ( m_CooldownTimers.Get(cooldownCategory).IsRunning() )
790 {
791 m_CooldownTimers.Get(cooldownCategory).Stop();
792 }
793
795 Param1<int> param = new Param1<int>(cooldownCategory);
796 m_CooldownTimers.Get(cooldownCategory).Run(time, this, "ResetCooldown", param);
797 }
ref map< int, ref Timer > m_CooldownTimers

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