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

◆ EquipItem()

bool Attachments::EquipItem ( )
inlineprotected

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

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

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