902 {
903 if ( attachment )
904 {
905 InventoryLocation inventory_location = new InventoryLocation;
906 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
907
908 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
909 }
910
911 return false;
912 }
proto native int GetSlot()
returns slot id if current type is Attachment