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

◆ PredictiveTakeEntityToInventory()

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

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

9030 {
9031 bool can_detach;
9032 if (CanRedirectToWeaponManager(item,can_detach))
9033 {
9034 InventoryLocation il = new InventoryLocation();
9035 if (can_detach && GetInventory().FindFreeLocationFor(item, flags, il))
9036 {
9037 return GetWeaponManager().DetachMagazine(il);
9038 }
9039 return false;
9040 }
9041 return super.PredictiveTakeEntityToInventory(flags, item);
9042 }
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().