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

◆ InjectAgentWithPlayerDose()

float PluginBase::InjectAgentWithPlayerDose ( EntityAI target,
int agent,
float protection,
float dose_size,
int inject_type )
inlineprotected

will add agent to a given target

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

339 {
340 float count = CalculateAgentsToTransmit(agent, protection, dose_size, inject_type);
341 {
342 if(count > 0)
343 {
344 target.InsertAgent(agent, count);
345 return count;
346 }
347 }
348 return 0;
349 }
float CalculateAgentsToTransmit(int agent_id, float protection, int dose_size, int inject_type)
Определения PluginTransmissionAgents.c:382

Перекрестные ссылки CalculateAgentsToTransmit().

Используется в TransmitAgentsEx().