Functions Documentation
View Function Edit Function
Name shpCanInstallArmor
Syntax (shpCanInstallArmor ship itemStruct)
Argument List ship: The ship that you want to see if it can equip the armor.
itemStruct: The armor you want to see if it can be equipped.
Returns number: 1 if the armor is to heavy, 0 if it can be installed.
Category ship
Description Checks to see if the ship can install that armor.
(shpCanInstallArmor gPlayerShip (itmCreate 0x4001 1))

Returns 0 because all player ships can install light titanium armor.
Comment Returns a number instead of a condition to allow for reasons why it can not install the armor.