xovoxx Posted August 12, 2020 Share Posted August 12, 2020 Hello! I'm working on a mod where you have to take care of a moleworm. I want to make various things happen when that moleworm is fed. I succeeded in overwriting the moleworm's prefab script. I added the line inst.components.eater:SetOnEatFn(OnEat) local function OnEat(inst) inst.components.inspectable:SetDescription("updated mole inpsection 1") end But unfortunately, nothing happens when the mole eats : inspecting it afterwards still displays the normal description. It really seems as if my function "OnEat" was not called. I suspect I might be using the wrong parameters, but I don't know how to fix it. Any help is welcome! Link to comment https://forums.kleientertainment.com/forums/topic/120879-need-help-making-something-happen-when-a-moleworm-is-fed/ Share on other sites More sharing options...
Developer ImDaMisterL Posted August 12, 2020 Developer Share Posted August 12, 2020 (edited) Moved to Mods and Tools, since Tutorials & Guides is only for guides and explanations. Hope you find the help you're looking for Edited August 12, 2020 by ImDaMisterL 1 Link to comment https://forums.kleientertainment.com/forums/topic/120879-need-help-making-something-happen-when-a-moleworm-is-fed/#findComment-1362133 Share on other sites More sharing options...
xovoxx Posted August 12, 2020 Author Share Posted August 12, 2020 Oops, sorry for my mistake! Link to comment https://forums.kleientertainment.com/forums/topic/120879-need-help-making-something-happen-when-a-moleworm-is-fed/#findComment-1362134 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