Jump to content

Recommended Posts

inst.components.foodaffinity:AddPrefabAffinity("insertfoodprefabhere", TUNING.AFFINITY_15_CALORIES_SMALL)

In your character's master_postinit

Make sure you find the food's prefab name, not its in-game name. Some of the prefab names can be weird. TUNING.AFFINITY_15_CALORIES_SMALL has a few other options (TINY, MED, LARGE, HUGE, SUPERHUGE in place of SMALL) used depending on the hunger value of the original food so it adds exactly 15 hunger onto the food. The whole tuning value can be replaced with something like '1.5' because its really only looking for what to multiply the original hunger value with.

  • Like 3

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