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

◆ EquipItem()

bool Attachments::EquipItem ( )
inlineprotected

См. определение в файле 5_Mission/DayZ/GUI/InventoryNew/Attachments.c строка 263

264 {
265 ItemBase entity = ItemBase.Cast( GetFocusedItem() );
266 if( entity && !entity.IsInherited( Magazine ) && !GetFocusedSlotsIcon().IsOutOfReach() )
267 {
268 g_Game.GetPlayer().PredictiveTakeEntityToInventory( FindInventoryLocationType.ATTACHMENT, entity );
269 return true;
270 }
271 return false;
272 }
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
SlotsIcon GetFocusedSlotsIcon()

Перекрестные ссылки g_Game, GetFocusedItem() и GetFocusedSlotsIcon().