dakenho Posted November 2, 2013 Share Posted November 2, 2013 would it be possible to adjust how much food a player would need to eat and the players current hunger level?what I want to do is design a mod where doing tasks drains hunger, IE swinging an axe, running around, everything will consume calories and effect hunger. Link to comment Share on other sites More sharing options...
RoboMat Posted November 2, 2013 Share Posted November 2, 2013 You should be able to increment the hunger variable OnPlayerUpdate. Link to comment Share on other sites More sharing options...
dida55 Posted November 2, 2013 Share Posted November 2, 2013 I imagine something like this could work:player:getStats():setHunger(player:getStats():getHunger() + 0.xx); Link to comment Share on other sites More sharing options...
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