Jump to content

Seat Belts Problem


Recommended Posts

Hello, I did everything as shown in the tutorial. But HP always regenerates itself when I put on the seat belt, when I crash.

 Even though I did everything from scratch, my dear suddenly becomes 100%.

Edited by MaviS
Link to comment
Share on other sites

  • 1 year later...

Hi , if you want a solution you can do :
if ((vehicle _unit) isKindOf "Car" && (isNull _source || _source isEqualTo _unit)) then
{
    _oldDamage = _damage
    _damage = if (life_seatbelt) then { _damage / 2 } else { _damage};
    if(_damage >= _oldDamage) then { _damage = _oldDamage};
};

 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

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

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.