Jump to content
  • 0

Sleep in tent regen blood simplified


W4lly

Question

bloodAmount = 1000;

while {true} do
{
   if(r_player_blood > 12000) then {
        r_player_blood = 12000;
    } else {
       sleep 2;
	   if(s_player_sleep != -1) then {
       r_player_blood = r_player_blood + bloodAmount;
      };
 };
};
I have little knowledge of code .... 
try mod this (i put simply condition if players sleep)  extract from Krixes script,
works fine,
simply regen blood when sleep in tent ,
but it is correct or it may cause problems?
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • Advertisement
  • Discord

×
×
  • Create New...