922 {
923 if ( attachment )
924 {
925 InventoryLocation inventory_location = new InventoryLocation;
926 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
927
928 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
929 }
930
931 return false;
932 }
proto native int GetSlot()
returns slot id if current type is Attachment