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

◆ TransferItem()

override bool AttachmentCategoriesRow::TransferItem ( )
inlineprotected

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

132 {
133 if (CanTakeToInventory())
134 {
135 EntityAI entity = GetFocusedItem();
136 SlotsIcon focused_icon = GetFocusedSlotsIcon();
137 if( entity && !entity.IsLockedInSlot() && (!focused_icon || !focused_icon.IsOutOfReach()) )
138 {
139 PlayerBase player = PlayerBase.Cast( GetGame().GetPlayer() );
140 GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, entity );
141 return true;
142 }
143 }
144 return false;
145 }
class LogManager EntityAI
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
PlayerBase GetPlayer()
Определения ModifierBase.c:51
proto native DayZPlayer GetPlayer()
bool IsOutOfReach()
Определения SlotsIcon.c:729
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GetPlayer(), GetPlayer() и SlotsIcon::IsOutOfReach().