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

◆ CanEquip()

bool Attachments::CanEquip ( )
inlineprotected

См. определение в файле 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 GetGame().GetPlayer().GetInventory().FindFreeLocationFor( entity, FindInventoryLocationType.ATTACHMENT, il );
233 }
class LogManager EntityAI
class GP5GasMask extends MaskBase ItemBase
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
EntityAI GetFocusedItem()
Определения Attachments.c:104
proto native DayZPlayer GetPlayer()
proto native CGame GetGame()

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