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

◆ TransferItem()

override bool Container::TransferItem ( )
inlineprotected

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

821 {
822 if (CanTakeToInventory())
823 {
824 if (GetFocusedIcon())
825 {
826 EntityAI entity = EntityAI.Cast( GetFocusedIcon().GetObject() );
827 if (entity)
828 {
829 GetGame().GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.CARGO, entity );
830 return true;
831 }
832 }
833 }
834 return false;
835 }
class LogManager EntityAI
Object GetObject()
Определения ActionTargets.c:122
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
proto native DayZPlayer GetPlayer()
Icon GetFocusedIcon()
Определения CargoContainer.c:431
proto native CGame GetGame()

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