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

◆ PredictiveTakeEntityToTargetInventory()

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

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

8413 {
8414 bool can_detach;
8415 if (CanRedirectToWeaponManager(item,can_detach))
8416 {
8417 InventoryLocation il = new InventoryLocation();
8418 if (can_detach && target.GetInventory().FindFreeLocationFor(item, flags, il))
8419 {
8420 return GetWeaponManager().DetachMagazine(il);
8421 }
8422 return false;
8423 }
8424 return super.PredictiveTakeEntityToTargetInventory(target, flags, item);
8425 }
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().