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

◆ CanEquip()

bool Attachments::CanEquip ( )
inlineprotected

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

225 {
226 EntityAI entity = ItemBase.Cast( GetFocusedItem() );
227 InventoryLocation il = new InventoryLocation;
228 if( !entity || entity.IsInherited( Magazine ) )
229 {
230 return false;
231 }
232 return g_Game.GetPlayer().GetInventory().FindFreeLocationFor( entity, FindInventoryLocationType.ATTACHMENT, il );
233 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18

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