DayZ 1.29
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 строка 504

505 {
506 ItemBase attachment = ItemBase.Cast(player.GetInventory().FindAttachment(slot));
507
508 if(!attachment)
509 return 0;
510
511 return attachment.GetProtectionLevel(type, consider_filter, system);
512
513 }
class GP5GasMask extends MaskBase ItemBase

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