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

◆ ActionCondition()

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

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

97 {
98 if (g_Game.IsMultiplayer() && g_Game.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 }
DayZGame g_Game
Определения DayZGame.c:3942
int FindSlotIdToAttachOrCombine(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionAttachOnSelection.c:20

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