8486 {
8487 bool can_detach;
8489 {
8490 if (can_detach)
8491 {
8492 InventoryLocation dst = new InventoryLocation;
8493 dst.
SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8494
8496 }
8497 return false;
8498 }
8499 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
8500 }
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()
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)