Jump to content
  • 0

How to make loosing humanity after die?


SixPeso

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!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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...