erase.sqs
_body = _this select 0
?!(local Player): goto "REMOVEBODY"
?(Player != _body):goto "REMOVEBODY"
Player removealleventhandlers "killed"
@alive player
Player addEventHandler ["killed", {_this exec "erase.sqs"}]
#REMOVEBODY
~ 30 + (Random 30)
deletevehicle _body
exit
init example: S1 addEventHandler ["killed", {_this exec "erase.sqs"}]
S1 being soldiers name. I use so many different scripts. Hope it helps.