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

◆ ActionCondition()

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

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

97 {
98 if (GetGame().IsMultiplayer() && GetGame().IsServer())
99 return true;
100
101 if (target.GetObject() && target.GetObject().CanUseConstruction())
102 return false;
103
104 return FindSlotIdToAttachOrCombine(player, target, item) != InventorySlots.INVALID;
105 }
int FindSlotIdToAttachOrCombine(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionAttachOnSelection.c:20
proto native CGame GetGame()

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