When you want him executed use this :
unit switchmove "fxexecution"
~1.8
unit playmove "fxexecutiondead"
@!alive unit
unit switchmove "handguncrouchdying"
exit
He will sit down on his knees until you shoot him.
He will fall backwards like he's executed from the front (in his forehead)
unit switchmove "fxexecution"
~1.8
unit playmove "fxexecutiondead"
@!alive unit
unit switchmove "fxexecutiondead"
~0.8
unit switchmove "civildead"
The same script but now he's is executed from the rear, a neckshot, so he's falling forward.
I've used "fxexecutiondead" again, but followed by a pernament deadanimation like "civildead", so the unit won't stand up anymore.
I've used these in an intro, so they are tested.
Maybe I put this in the pending board one day, cos this question keeps popin' up.