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

◆ PredictiveTakeEntityToTargetCargoEx()

override bool ManBase::PredictiveTakeEntityToTargetCargoEx ( notnull CargoBase cargo,
notnull EntityAI item,
int row,
int col )
inlineprotected

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

8388 {
8389 bool can_detach;
8390 if (CanRedirectToWeaponManager(item, can_detach))
8391 {
8392 if (can_detach)
8393 {
8394 InventoryLocation dst = new InventoryLocation;
8395 dst.SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8396
8397 return GetWeaponManager().DetachMagazine(dst);
8398 }
8399 return false;
8400 }
8401 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
8402 }
proto native void SetCargoAuto(notnull CargoBase cargo, EntityAI e, int row, int col, bool flip)
based on Cargo.IsProxyCargo uses SetProxyCargo or SetCargo respectively
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() и InventoryLocation::SetCargoAuto().