Functions Documentation
View Function Edit Function
Name shpGetItemDeviceName
Syntax (shpGetItemDeviceName ship item) -> device name of item (or -1)
Argument List ship: the ship that has the item
item: the item that has the needed name
Returns the name of the item or -1 if it is not installed
Category ship, spaceobject, item
Description Used to get weapon names on ships
Example taken from &itDamageWeaponROM;
(if (and notFound 
(eq (shpGetItemDeviceName gSource weaponItem) 0))
(block Nil
(shpDamageItem gSource theItem)
(objSendMessage gSource Nil (cat (itmGetName weaponItem 33) 
" damaged by defective ROM"))
(setq notFound Nil)