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

◆ ActionCondition()

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

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

46 {
47 EntityAI targetEntity = EntityAI.Cast(target.GetObject());
48 if (targetEntity && targetEntity.CanUseConstruction())
49 {
50 int slotID = FindAndTranslateAttachmentSlot(player, target, item);
51 return slotID != InventorySlots.INVALID;
52 }
53
54 return false;
55 }
class LogManager EntityAI
int FindAndTranslateAttachmentSlot(PlayerBase player, ActionTarget target, ItemBase item)
where appropriate, returns valid attachment slot ID even without proper selection
Определения ActionAttachToConstruction.c:115

Перекрестные ссылки ActionTarget(), FindAndTranslateAttachmentSlot() и InventorySlots::INVALID.