Jump to content

Recommended Posts

 

On 11/16/2019 at 9:53 AM, D1R3W0LF22 said:

Is there a way to make it so when you're starving you lose more health than normal? I want my character to starve to death faster.

There is! Located in the hunger component (scripts/components/hunger.lua) is "self.hurtrate"

When it comes to "self.." lines in component files, outside of that file (specifically in the player's prefab) you would refer to it as inst.components.hunger.hurtrate = CUSTOM VALUE

 

Hope that helps give you what you're looking forwards to as well as well as a lil' tip for the future! 

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
×
  • Create New...