Jump to content

Recommended Posts

Hi guys, I'm new to modding and i'd like to use an OnEndGrowth event. For example, your farm frow a fruit. When the fruit is full grown, the function drop is called and the fruit is dropped on the ground. Does an event like this already exists ? If not, do you know how events are managed ? I couldn't find a list in the LUAsĀ 

Thanks for your help !

Link to comment
https://forums.kleientertainment.com/forums/topic/54513-onendgrowth-event/
Share on other sites

@pyrovoice,

well, i dont think theres an event, since there's no real need to push the event to something. the growing is done by the plant and only affects the plant.

u will probably have to directly mod the plants/farms.

and events are not centrally managed, events are used all over the code, whenever theres a need to tell another entity something, that should also affect this other entity.

(ofc theres a part of the code that takes care of how the events are passed(in entityscript.lua) but i dont think thats what u mean?)

Edited by Seiai

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