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

◆ PredictiveTakeEntityToTargetInventory()

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

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

9015 {
9016 bool can_detach;
9017 if (CanRedirectToWeaponManager(item,can_detach))
9018 {
9019 InventoryLocation il = new InventoryLocation();
9020 if (can_detach && target.GetInventory().FindFreeLocationFor(item, flags, il))
9021 {
9022 return GetWeaponManager().DetachMagazine(il);
9023 }
9024 return false;
9025 }
9026 return super.PredictiveTakeEntityToTargetInventory(target, flags, item);
9027 }
override WeaponManager GetWeaponManager()
Определения PlayerBase.c:2047
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
Определения PlayerBase.c:8992
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:403

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