Jump to content

Recommended Posts

 I made a bucket for my goat milking mod and it's currently attached to the beard component. The issue is that the bucket being a "shaver" it gets the "Shave" tooltip when hovering on the goat, but I need it to say "Milk". I tried some things here and there but no luck.

 

I tried making it respond to the prefab name by trying to override an action function in actions.lua (the game didn't respond to it because I don't know how to initialise it like prefabpostinit).

 

It was something like this but I already deleted the paragraph.

if (act.target.prefab == "lightninggoat") and (act.invobject.prefab == "bucket_mod") then    GLOBAL.STRINGS.ACTIONS.SHAVE = "Milk"

 I don't think it's necesarry to create a separate component just for this one tool, there must be a way, right?

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