Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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
Sign in to follow this  

×