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

◆ PredictiveTakeEntityToInventory()

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

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

8330 {
8331 bool can_detach;
8332 if (CanRedirectToWeaponManager(item,can_detach))
8333 {
8334 InventoryLocation il = new InventoryLocation();
8335 if (can_detach && GetInventory().FindFreeLocationFor(item, flags, il))
8336 {
8337 return GetWeaponManager().DetachMagazine(il);
8338 }
8339 return false;
8340 }
8341 return super.PredictiveTakeEntityToInventory(flags, item);
8342 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8292
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:402

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