Ratituee Posted March 5, 2023 Share Posted March 5, 2023 (edited) title Edited March 5, 2023 by Ratituee typo Link to comment https://forums.kleientertainment.com/forums/topic/146353-how-do-i-set-a-favorite-food-for-a-modded-character/ Share on other sites More sharing options...
Merkyrrie Posted March 5, 2023 Share Posted March 5, 2023 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. 3 Link to comment https://forums.kleientertainment.com/forums/topic/146353-how-do-i-set-a-favorite-food-for-a-modded-character/#findComment-1623657 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