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

◆ PredictiveTakeEntityToTargetInventory()

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

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

8663 {
8664 bool can_detach;
8665 if (CanRedirectToWeaponManager(item,can_detach))
8666 {
8667 InventoryLocation il = new InventoryLocation();
8668 if (can_detach && target.GetInventory().FindFreeLocationFor(item, flags, il))
8669 {
8670 return GetWeaponManager().DetachMagazine(il);
8671 }
8672 return false;
8673 }
8674 return super.PredictiveTakeEntityToTargetInventory(target, flags, item);
8675 }
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().