Jump to content

Recommended Posts

@DarkXero,Okay, great, thanks a lot! Works perfectly!

 

You're awesome, Dark :-)

 

Oh, by the way, where did you put the missing files of tex and image for "animalfood"? I did see the sortkey code but no added image.

 

Edit: How do you correctly rename the animalfood anim? Right now it is set at "cutgrass" (of course) and the problem is that now actual cutgrass shares this anim too ^^

Edited by Thibooms

@Thibooms, AddRecipe takes two more parameters after builder_tag, those being atlas and tex.

They were right between the tag and the sortkey.

You need to specify them.

 

You use something like the build renamer of Matt's Tools.

Then you end with something like this.

It works with the code:

	inst.AnimState:SetBank("cutgrass")	inst.AnimState:SetBuild("animalfood")	inst.AnimState:PlayAnimation("idle")

We keep the bank, we change the build.

animalfood.zip

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