9088 {
9089 bool can_detach;
9091 {
9092 if (can_detach)
9093 {
9094 InventoryLocation dst = new InventoryLocation;
9095 dst.
SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
9096
9098 }
9099 return false;
9100 }
9101 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
9102 }
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)