Refunding after transfer

Hi! I have a question: let’s imagine that I want to call method on contract, transfer some $NEAR to other account and create some objects in contract. As I understand, I have to pay some money from deposit for storage (when creating new objects), but at the same time I want to transfer a cartain amount of $NEAR from deposit to another account. How can I do it? Thanks in advance.