OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: GenmanipulationKlo 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?
-
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 ;).
-
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?