And are you sure the new unit keeps the same name?
for ai units yes and the player unit obviously retains the players name
One more thing that remains the same is the group that the unit was in
try it
run the following code
Mission EditorCreate 2 units, one which you will play and another unit which is "Playable" and link it so its in your group
name this additional unit "W1"
and create a marker called respawn_westDescription.EXTrespawn=3
respawndelay=2
disabledAI = 0
Init .sqstx_Oldname = name W1
{_x addEventHandler ["killed", {_this exec "killed.sqs"}]}foreach units group player
Killed .sqs{_x removealleventhandlers "killed"}foreach units group player
~5
{_x addEventHandler ["killed", {_this exec "killed.sqs"}]}foreach units group player
_array =[]
{_array = _array + [name _x]} foreach units group player
hint format ["Old = %1\nGroups= %2",tx_Oldname,_array]
exit
kill the unit in your group, wait for it to respawn
and kill it again
you will see the same name in the hint message which is the name of all units in your group
compare that name to the initially saved name of W1 and you will see they are indeed the same
to have your system work the way you want it too, will require some publicvariabling and manipulating arrays