-----
First question is from walterar, and is taken from issue #3027:
Something like this should work:I'm not sure how to migrate this, to new code:Some idea?Code: Select all
if (ship:GetEquipFree ("LASER") < ShipDef [ship.shipId] equipSlotCapacity.LASER)
Code: Select all
if (ship:GetEquipFree("laser_front") < ship:GetEquipSlotCapacity("laser_front"))
Edit: Fix example, which used wrong slot name.