Home   Help Search Login Register  

Author Topic: respawn and change of name  (Read 1548 times)

0 Members and 2 Guests are viewing this topic.

GenmanipulationKlo

  • Guest
respawn and change of name
« on: 07 Oct 2002, 20:58:24 »
I got a little problem here and can't find help in old threats...

I got respawn = 3. Now I got a script running that needs my name. When I die and respawn the script those not work anymore because my name must have changed  ???. My dead body in the field got my original name.... what is my name now after respawn?

Rodd

  • Guest
Re:respawn and change of name
« Reply #1 on: 07 Oct 2002, 21:43:41 »
Make sure that you use global variables (names given in the editor) or use player if you can. If this doesn't work attach the script to your post, usually that will get the attention of some kind soul ;).

GenmanipulationKlo

  • Guest
Re:respawn and change of name
« Reply #2 on: 08 Oct 2002, 01:21:08 »
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?