Jump to content

Recommended Posts

I'm trying to understand - how to create mods on this game and can't found documentation for mod creators, therefore i created this topic

How to change hunger rate of character/add passive hunger decreasing on the last version of game? (v483468)
 

I tried
inst.components.hunger:SetRate(x)
inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * x)
But it does'nt works,
Also i don't understand what is
inst.components.hunger:SetKillRate(x)
I tried to change x in last string, but it had no effect.

Link to comment
https://forums.kleientertainment.com/forums/topic/135311-mod-creating/
Share on other sites

Sadly there isn't that much documentation for this game at all. A lot of it will lie in your LUA abilities, studying other mods, and participating in this forum you're on at the moment.

The guide below is a huge collection of tutorials for newcomers like yourself, it's how I got my start and I hope it can help you.

As for what you're trying to do, SetKillRate(x) sets how much damage your character takes when starving, it doesn't effect actual hunger rate. There should be something in the tutorial collection I linked above to help with hunger rates, but if not I can help.

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