I’m not an expert, and it would depend on the system you have anyway, but AFAIK the main differentiator between a cooling air conditioner and a heat pump is a “reversing valve”. You may simply need to change the mode to reverse it, then you get cooling. From what I understand, it would be unusual for it only to work in heat mode.