• Food issue
    5 replies, posted
So I have the food and household items for my server and people can eat without a hp limit. How do I make it so people can eat until they get to a certain hp?
You'd have to edit the entities or ask the author to add it.
Yea but whats the code i add to it?
Demanding for people to make the code for you is going to get you no where here.
[code]If guy's health Is less than 100 Then Set guy's health To Min( guy's max health, guy's health plus amount ) End[/code] It really isn't hard. The problem is that you have to edit every food item or ask the author to add a sanity check to not allow eating if at full health and to clamp added health to the limit.
[QUOTE=killerdude98;48888313]Yea but whats the code i add to it?[/QUOTE] Ask the author to add it, it'd be a lot easier than trying to do it yourself if you are asking what code to add already
Sorry, you need to Log In to post a reply to this thread.