8388 {
8389 bool can_detach;
8391 {
8392 if (can_detach)
8393 {
8394 InventoryLocation dst = new InventoryLocation;
8395 dst.
SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8396
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()
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
bool DetachMagazine(InventoryLocation invLoc, ActionBase control_action=NULL)