To die like a hero is to perish through desire.
"Why you are here, that you should ask yourself: and if you have no ready answer, then set for yourself goals, high and noble goals, and perish in pursuit of them!
I know of no better life purpose than to perish in attempting the great and the impossible."
Nietzsche