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

◆ PredictiveTakeEntityToInventory()

override bool ManBase::PredictiveTakeEntityToInventory ( FindInventoryLocationType flags,
notnull EntityAI item )
inlineprotected

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

8678 {
8679 bool can_detach;
8680 if (CanRedirectToWeaponManager(item,can_detach))
8681 {
8682 InventoryLocation il = new InventoryLocation();
8683 if (can_detach && GetInventory().FindFreeLocationFor(item, flags, il))
8684 {
8685 return GetWeaponManager().DetachMagazine(il);
8686 }
8687 return false;
8688 }
8689 return super.PredictiveTakeEntityToInventory(flags, item);
8690 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1989
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8640
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:403

Перекрестные ссылки CanRedirectToWeaponManager() и GetWeaponManager().