ok I tested around a bit.
now I know that when you die there will be your dead body and you after your respawn. both have the same name, like player1.
but when I use a script with nearestObject it returns "Alpha Black:1" for my "respawned me" and some alphanumeric code for the "dead me".
The "Alpha Black:1" is his groupname - can I use this instead of my name (player1), like getpos "Alpha Black:1" somehow?