Jump to content
  • 0

Player death respawn at body


kwek20

Question

Hello!

 

Im trying to add a custom death screen to my server as shown here: http://opendayz.net/threads/death-screen-and-sound.18718/

However. When i die i get this error in the console:

4pt75pu.png

 

In my custom compile.sqf:

player_death = compile preprocessFileLineNumbers "custom\player_death.sqf";

This gives the error, allthough i do not edit server_playerdied.sqf

 

player_death = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_death.sqf";

This works, however no death screen now :(

 

Custom player_death.sqf copied directly from dayz epoch github:
https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/compile/player_death.sqf

 

Soo this is the code i have (copied from my file)

http://pastebin.com/iQn43hYY

 

My server_playerDied.sqf:
http://pastebin.com/fCzSkYJv

 

Directly from the denizio linux epoch installer:

https://github.com/denisio/Dayz-Epoch-Linux-Server/blob/master/%40dayz_epoch_server/addons/dayz_server/compile/server_playerDied.sqf

 

 

Soooo as far as i know, all my files are normal and the _playerID should exist.

Im not really sure how the death event works, as in what is called first. I tried logging the id in the server_playerDied.sqf, which just brought the error to that line. I tried logging the playerid in player_death.sqf file, but the log never showed up (presumably because of the error cancellign it.

 

HOWEVER, the deathscreen shows up when i add it. Its jsut that i dont respawn fresh. Instead i respawn with my gear at my body...

 

If you need any more files shown, just ask!

I really want this death screen :3

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
 

 

1 cutRsc ["DeathScreen","BLACK OUT",3];

Change it to 

100 cutRsc ["DeathScreen","BLACK OUT",3];

 

 

Hmm i tired that, no success.

This is my new custom player_died.sqf

http://pastebin.com/AYnRR0Tb

 

In my init.sqf i have a link to the custom compile.sqf after loadign the normal one.

This is how my custom compile looks:

http://pastebin.com/mWmQSWhK

 

my init.ssqf:

http://pastebin.com/SBXycvs8

 

I tried all day, no use :(

 

(appreciate the help)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...