im using this in the units init field
this AddEventHandler ["killed", {[] exec "court.sqs"}]
and these are what (or suposebly) what is returned by it
"killed" (addable to men or vehicles) :
_this select 0 : who's dead ;
_this select 1 : whodunnit (say, the killer) ;
but i think this is wrong and your right becuase ive had trouble with this before
so this leads me to have one option the long way around wich always seems to be the easy way for ofp lol.
#loop
officer addEventHandler ["hit",{goto "CheckDead"}]}
~2
goto "loop"
#checkdead
? (_dammage >= 1) : [] exec "court" && goto exit
? (_dammage < 1): goto "loop"
#exit