8736 {
8737 bool can_detach;
8739 {
8740 if (can_detach)
8741 {
8742 InventoryLocation dst = new InventoryLocation;
8743 dst.
SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8744
8746 }
8747 return false;
8748 }
8749 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
8750 }
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)