829 {
830 if ( attachment )
831 {
832 InventoryLocation inventory_location = new InventoryLocation;
833 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
834
835 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
836 }
837
838 return false;
839 }
proto native int GetSlot()
returns slot id if current type is Attachment