Jump to content
  • 0
Sign in to follow this  
SixPeso

How to make loosing humanity after die?

Question

Howdy guys. I tried to make lossing humanity after die by adding this code:

_DeadHumanity = player getVariable["humanity",0];
_DeadHumanity = _DeadHumanity - 1000;
player setVariable ["humanity", _DeadHumanity , true]; 

to player_death.sqf. After die I can see, that humanity changed, but when I spawn, my humanity amount is like was before death. 

I just think, that I should make it in server side, but dont know how and where.

I have few ideas about that, but dont know how to realise them:
1. Data base script, that changes humanity when creates new body of already existed player.
2. Mission side script. After spawn change humanity of player.
3. Server side. Idk where :c

Hope that someone clever can help me :) Thanks!

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By THAC0_Gewch
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter/tree/Epoch_1.0.5.1
       
      Updated for 1.0.6.x
    • By THAC0_Gewch
      Many years ago, I made a Humanity Loadout script for 1.0.5.x. The script is basic, it checks your players' humanity and grants a pre-set loadout when they spawn depending on their humanity level.
      I've now updated and optimized this script for 1.0.6.x:
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter
       
       
    • By Dzhabrailov
      how to do it humanity for animals killed ?
    • By calinova22
      I was wondering if it is possible to make it so that a players humanity would not change for a certain amount of time? I have a PVP arena with a teleport in and I was wanting to make it so people could TP in and fight without worrying about gaining or losing humanity.
    • By Dzhabrailov
      How it possible to give humanity for killing animals? :D
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...