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

◆ PredictiveTakeEntityToTargetCargo()

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

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

8373 {
8374 bool can_detach;
8375 if (CanRedirectToWeaponManager(item,can_detach))
8376 {
8377 InventoryLocation il = new InventoryLocation();
8378 if (can_detach && target.GetInventory().FindFreeLocationFor(item, FindInventoryLocationType.CARGO, il))
8379 {
8380 return GetWeaponManager().DetachMagazine(il);
8381 }
8382 return false;
8383 }
8384 return super.PredictiveTakeEntityToTargetCargo(target,item);
8385 }
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:8292
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)
Определения WeaponManager.c:402

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