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

◆ ActionCondition()

override bool ActionUnplugThisByCord::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

33 {
34 ItemBase targetItem = ItemBase.Cast(target.GetObject());
35
36 if (targetItem && targetItem.HasEnergyManager())
37 {
38 string selection = targetItem.GetActionComponentName(target.GetComponentIndex());
39
40 if (selection == ComponentEnergyManager.SEL_CORD_PLUGGED)
41 return true;
42
43 // Special case for unfolded spotlight
44 if (selection == Spotlight.SEL_CORD_PLUGGED_U)
45 return true;
46 }
47
48 return false;
49 }
class GP5GasMask extends MaskBase ItemBase

Перекрестные ссылки ActionTarget и ComponentEnergyManager::SEL_CORD_PLUGGED.