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

◆ PredictiveTakeEntityToTargetCargo()

override bool ManBase::PredictiveTakeEntityToTargetCargo ( notnull EntityAI target,
notnull EntityAI item )
inlineprotected

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

8721 {
8722 bool can_detach;
8723 if (CanRedirectToWeaponManager(item,can_detach))
8724 {
8725 InventoryLocation il = new InventoryLocation();
8726 if (can_detach && target.GetInventory().FindFreeLocationFor(item, FindInventoryLocationType.CARGO, il))
8727 {
8728 return GetWeaponManager().DetachMagazine(il);
8729 }
8730 return false;
8731 }
8732 return super.PredictiveTakeEntityToTargetCargo(target,item);
8733 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
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().