modding:function:shpcaninstallarmor
Discuss this page on this pages TalkPage
shpCanInstallArmor
See shpCanInstallArmor at Xelerus
| Syntax | (shpCanInstallArmor ship itemStruct) |
|---|---|
| Arguments | 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. |
Example
(shpCanInstallArmor gPlayerShip (itmCreate 0x4001 1))
Returns 0 because all player ships can install light titanium armor. Return to Functions list
modding/function/shpcaninstallarmor.txt · Last modified: by 127.0.0.1
