How to use "cordially" in a sentence

Sentences

"A lock-release gun," the tall man said, smiling cordially and nodding