Jump to content
rz22g

Revive with only partial health

Recommended Posts

Is it possible to set so that when you revive an incapacitated player they do not regain full health ?  Would like it so the revived player must use first aid or medical kit after being revived to get back to full capacity.

Share this post


Link to post
Share on other sites

in init.sqf, or in a trigger set to condition: true


 

0 = [] spawn {
  while {true} do {
    {
      _x setVariable ["MGI_halfHealed",true];
      _x spawn {
       _plyr = _this;
       while {true} do {
         waitUntil {sleep 2; lifeState _plyr == "INCAPACITATED"};
         waitUntil {sleep 1; lifeState _plyr == "HEALTHY"};
         _plyr setDamage 0.5;
       };
     };
    } forEach (allPlayers select {isNil {_x getVariable "MGI_halfHealed"}});
    sleep 2;
  };
};

 

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×