You do indeed write the code in the init field of the unit.
this setunitpos "up"; this disableai move
(Order might be important. Syntax not guaranteed - look it up in the command reference.) He will fall out of the tower when dead whatever you do. You could use some fancy scripting to make the body stay up there, but it would look like it was supended in mid air and in any case I doubt its worth the trouble.