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

◆ TransferItem()

override bool HandsContainer::TransferItem ( )
inlineprotected

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

188 {
189 if (m_ActiveIndex == 0)
190 {
191 if (CanTakeToInventory())
192 {
193 EntityAI item_in_hands = GetGame().GetPlayer().GetHumanInventory().GetEntityInHands();
194 if (item_in_hands && GetGame().GetPlayer().GetHumanInventory().CanRemoveEntityInHands() && !GetGame().GetPlayer().GetInventory().HasInventoryReservation(item_in_hands, null))
195 {
196 if (GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, item_in_hands ))
197 {
198 m_MainWidget.FindAnyWidget("Cursor").Show( false );
199 m_MainWidget.FindAnyWidget("hands_preview_root").SetAlpha( 0.7 );
200 return true;
201 }
202 }
203 }
204 }
205 else if (GetFocusedContainer())
206 {
207 return GetFocusedContainer().TransferItem();
208 }
209 return false;
210 }
class LogManager EntityAI
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
PlayerBase GetPlayer()
Определения ModifierBase.c:51
proto native DayZPlayer GetPlayer()
proto native CGame GetGame()

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