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

◆ GetProtectionLevelEx()

static float PluginBase::GetProtectionLevelEx ( int type,
int slot,
Man player,
bool consider_filter = true,
int system = 0 )
inlinestaticprotected

Protection level of an attachment against enviromental hazard (mask/filters for example)

Аргументы
typeType of protection (see DEF_BIOLOGICAL in constants.c for example)
slotInventory slot id
playerPlayer reference
consider_filter(unused parameter for now)
system(unused parameter for now)
Возвращает
Attachment protechtion level

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

488 {
489 ItemBase attachment = ItemBase.Cast(player.GetInventory().FindAttachment(slot));
490
491 if(!attachment)
492 return 0;
493
494 return attachment.GetProtectionLevel(type, consider_filter, system);
495
496 }
class GP5GasMask extends MaskBase ItemBase

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