So I was looking through old scripts I have laying around and I decided to toss the good old "gut human" script on my server for fun.
I was looking at the code and I saw the part about cutting yourself on the knife and it makes you lose blood and shake like you're in pain. I would like to add infection to that as well.. so if the player cuts himself, he will be in pain and infected and lose blood.
if (_rnd < 0.1) then {
r_player_inpain = true;
r_player_infected = true;
player setVariable["USEC_inPain",true,true];
player setVariable["USEC_infected",true,true];
r_player_blood = r_player_blood - 3000;
cutText ["Your knife slipped and you cut your hand. You have been infected.", "PLAIN DOWN"];
};
i even tried
r_player_inpain = true; player setVariable["USEC_inPain",true,true]; r_player_infected = true; player setVariable["USEC_infected",true,true];
but for some reason neither work. the player does lose blood however. What am I doing wrong?
Question
DangerRuss
So I was looking through old scripts I have laying around and I decided to toss the good old "gut human" script on my server for fun.
I was looking at the code and I saw the part about cutting yourself on the knife and it makes you lose blood and shake like you're in pain. I would like to add infection to that as well.. so if the player cuts himself, he will be in pain and infected and lose blood.
but for some reason neither work. the player does lose blood however. What am I doing wrong?
Link to comment
Share on other sites
3 answers 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 accountSign in
Already have an account? Sign in here.
Sign In Now