Jump to content

Recommended Posts

  • Developer

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?

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

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 by MidrealmDM

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