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

◆ PredictiveTakeEntityToTargetCargo()

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

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

9073 {
9074 bool can_detach;
9075 if (CanRedirectToWeaponManager(item,can_detach))
9076 {
9077 InventoryLocation il = new InventoryLocation();
9078 if (can_detach && target.GetInventory().FindFreeLocationFor(item, FindInventoryLocationType.CARGO, il))
9079 {
9080 return GetWeaponManager().DetachMagazine(il);
9081 }
9082 return false;
9083 }
9084 return super.PredictiveTakeEntityToTargetCargo(target,item);
9085 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:18
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().