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

◆ SetTemporaryResistance()

void PlayerAgentPool::SetTemporaryResistance ( int agentId,
float time )
inlineprotected

Sets temporary resistance time against specified agent contraction.

Аргументы

param agent_id Id of agent to add into pool (see eAgents)

Аргументы
timeLength of resistance in seconds

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

365 {
366 m_AgentTemporaryResistance[agentId] = Math.Clamp(time, 0.0, int.MAX);
367 }
const int MAX
Определения EnConvert.c:27
ref map< int, float > m_AgentTemporaryResistance
Определения PlayerAgentPool.c:19

Перекрестные ссылки Math::Clamp(), m_AgentTemporaryResistance и MAX.

Используется в OnStoreLoad(), ProcessTemporaryResistance() и ResetTemporaryResistance().