Jump to content
Sign in to follow this  
DennisWeiss

Respawn player per script

Recommended Posts

when a player logs out his coordinates are saved with him .. that's where to get them

Share this post


Link to post
Share on other sites

Here's a gist with something that should work: https://gist.github.com/smokey-edgy/ef23edf264dfcdfb679ceaf2ddd6427a

It's not clear to me which event is the correct one; though the behaviour is the same (player gets placed elsewhere when they load in). We can infer, but without a spec or documentation from Bohemia, we're just guessing. Hope this helps.

I just re-read your question and you say 'respawning' which probably doesn't mean spawning in the first time. There is OnClientRespawnEvent from the looks of it that hopefully should do the trick for that particular case. I haven't tried it myself, but I revised the gist above to contain it.

 

Edited by smokey.edgy
Misinterpreted question

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×