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

◆ PredictiveTakeEntityToTargetCargo()

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

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

8471 {
8472 bool can_detach;
8473 if (CanRedirectToWeaponManager(item,can_detach))
8474 {
8475 InventoryLocation il = new InventoryLocation();
8476 if (can_detach && target.GetInventory().FindFreeLocationFor(item, FindInventoryLocationType.CARGO, il))
8477 {
8478 return GetWeaponManager().DetachMagazine(il);
8479 }
8480 return false;
8481 }
8482 return super.PredictiveTakeEntityToTargetCargo(target,item);
8483 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
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().