Jump to content

Recommended Posts

I'm working on a hat where i want it to render behind the face, so what i did was putting this code in the OnEquip function

 

	owner.AnimState:SetMultiSymbolExchange("face", "swap_hat")

which works how i want it to. But if i load into the game while it was already equipped, the hat will be back in front of the face layer. it can easily be fixed by re-equipping it but i wonder if theres a way to fix it for good?

from what I've seen, the game runs your OnEquip function when the world loads if you have a hat or something similar, so anyway it is always re-equipped. You can put that line of code in your OnEquip function. I don't know if when you say 

On 8/27/2025 at 5:00 AM, amazingGob said:

it can easily be fixed by re-equipping it but i wonder if theres a way to fix it for good?

you are referring to the same thing I said.

49 minutes ago, FerniFrenito said:

from what I've seen, the game runs your OnEquip function when the world loads if you have a hat or something similar, so anyway it is always re-equipped. You can put that line of code in your OnEquip function. I don't know if when you say 

you are referring to the same thing I said.

it's already in the OnEquip tho

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