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

◆ PredictiveTakeEntityToTargetInventory()

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

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

8315 {
8316 bool can_detach;
8317 if (CanRedirectToWeaponManager(item,can_detach))
8318 {
8319 InventoryLocation il = new InventoryLocation();
8320 if (can_detach && target.GetInventory().FindFreeLocationFor(item, flags, il))
8321 {
8322 return GetWeaponManager().DetachMagazine(il);
8323 }
8324 return false;
8325 }
8326 return super.PredictiveTakeEntityToTargetInventory(target, flags, item);
8327 }
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().