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

◆ ReduceAgent()

void PlayerAgentPool::ReduceAgent ( int id,
float percent )
inlineprotected

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

202 {
203 percent = Math.Clamp(percent, 0, 100);
204 float reduction = percent * 0.01;
205
206 int agentCount = GetSingleAgentCount(id);
207 agentCount -= agentCount * reduction;
208
209 SetAgentCount(id, agentCount);
210 }
void SetAgentCount(int agent_id, float count)
Определения PlayerAgentPool.c:247
int GetSingleAgentCount(int agent_id)
Определения PlayerAgentPool.c:217

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