ItsTaiko Posted January 16, 2016 Share Posted January 16, 2016 Me and my friend are making a character mod and the character is gonna eat only vegetables, and not get anything from meat. How do I do this Link to comment https://forums.kleientertainment.com/forums/topic/62622-how-does-one-make-a-character-only-eat-one-type-of-food/ Share on other sites More sharing options...
Developer ImDaMisterL Posted January 16, 2016 Developer Share Posted January 16, 2016 Well, Wigfrid uses something like: "inst.components.eater:SetCarnivore(true)" (Sorry for not properly putting the code in the forum's code format, I'm on my mobile : P) I don't know if there's an existing command like that for vegetarians... perhaps you could do what the Up & Away mod did for their Winnie character and just make yours lose sanity and/or other have other downsides if they eat something other than vegetables? Link to comment https://forums.kleientertainment.com/forums/topic/62622-how-does-one-make-a-character-only-eat-one-type-of-food/#findComment-710213 Share on other sites More sharing options...
ItsTaiko Posted January 17, 2016 Author Share Posted January 17, 2016 3 hours ago, ImDaMisterL said: Well, Wigfrid uses something like: "inst.components.eater:SetCarnivore(true)" (Sorry for not properly putting the code in the forum's code format, I'm on my mobile : P) I don't know if there's an existing command like that for vegetarians... perhaps you could do what the Up & Away mod did for their Winnie character and just make yours lose sanity and/or other have other downsides if they eat something other than vegetables? Hmm seeing how our character is yeah that would work Link to comment https://forums.kleientertainment.com/forums/topic/62622-how-does-one-make-a-character-only-eat-one-type-of-food/#findComment-710265 Share on other sites More sharing options...
MidrealmDM Posted January 18, 2016 Share Posted January 18, 2016 (edited) On 1/16/2016 at 4:05 PM, ImDaMisterL said: Well, Wigfrid uses something like: "inst.components.eater:SetCarnivore(true)" I don't know if there's an existing command like that for vegetarians... local function custom_init(inst) inst.components.eater:SetVegetarian(true) end you can search for the file "eater.lua" in the scripts folder to see other eater types (such as Insectivore, Elemental, Bird, or Beaver). Although most player characters should use Omnivore, Vegetarian, or Carnivore. Edited January 18, 2016 by MidrealmDM Link to comment https://forums.kleientertainment.com/forums/topic/62622-how-does-one-make-a-character-only-eat-one-type-of-food/#findComment-710812 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