Event
A Unit Dies
Condition
[Owner of[Dying Unit]] Equal To Neutral Hostile
Actions
Wait 20 secs
Create 1 [Unit-Type of Dying Unit] at position of [Dying Unit]
That's the most simple way. If you want a more professional one, check the JASS-section (you need some knowledge in JASS to use those functions there)