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

◆ PredictiveTakeEntityToInventory()

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

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

8428 {
8429 bool can_detach;
8430 if (CanRedirectToWeaponManager(item,can_detach))
8431 {
8432 InventoryLocation il = new InventoryLocation();
8433 if (can_detach && GetInventory().FindFreeLocationFor(item, flags, il))
8434 {
8435 return GetWeaponManager().DetachMagazine(il);
8436 }
8437 return false;
8438 }
8439 return super.PredictiveTakeEntityToInventory(flags, item);
8440 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:1859
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8390
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:402

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