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

◆ ActionCondition()

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

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

29 {
30 ItemBase targetItem = ItemBase.Cast(target.GetObject());
31 EntityAI targetParent = EntityAI.Cast(targetItem.GetHierarchyParent());
32 if (!targetItem || !targetItem.IsTakeable() || targetItem.IsBeingPlaced() || (targetItem.GetCompEM() && !targetItem.GetCompEM().IsPlugged()) || ( targetItem.GetHierarchyParent() && !BaseBuildingBase.Cast(targetItem.GetHierarchyParent()) ) || ((targetParent && !targetItem.CanDetachAttachment(targetParent)) || (targetParent && !targetParent.CanReleaseAttachment(targetItem))))
33 return false;
34
35 if (targetItem.HasEnergyManager() && targetItem.GetCompEM().IsPlugged())
36 return player.GetInventory().CanAddEntityIntoHands(targetItem);
37
38 return false;
39 }
class LogManager EntityAI
void BaseBuildingBase()
Определения BaseBuildingBase.c:1328
class GP5GasMask extends MaskBase ItemBase
override bool CanDetachAttachment(EntityAI parent)
Определения GardenLime.c:42
override bool IsTakeable()
Определения BaseBuildingBase.c:988

Перекрестные ссылки ActionTarget, ItemBase::CanDetachAttachment() и ItemBase::IsTakeable().