Jump to content

Recommended Posts

Hello, I have a question :)!

So, what does " inst.AnimState:OverrideSymbol("face", "face30", "face") " do? Would it swap the current face texture with face30 texture? If that's so then how to you clear the override symbol then it stops overriding the face?

Also, for example if I want to add more face textures to my character like say "face-33" which doesn't exist by default would I be able to use that texture with this OverrideSymbol function or would it not work? Because I want to make my character unique faces for when he's attacked, sad, angry ect. but I don't want have to make entire texture builds just for a different face :|...

So, if someone can answer this question I would be much obliged :D!

So i'm not really familiar with this part of the code, but i found this :

 

local function onequip(inst, owner)
    owner.AnimState:OverrideSymbol("swap_body", "swap_krampus_sack", "backpack")
    owner.AnimState:OverrideSymbol("swap_body", "swap_krampus_sack", "swap_body")
    inst.components.container:Open(owner)
end

local function onunequip(inst, owner)
    owner.AnimState:ClearOverrideSymbol("swap_body")
    owner.AnimState:ClearOverrideSymbol("backpack")
    inst.components.container:Close(owner)
end

(example from krampus_sack). Seems that the way to remove the overridesymbol is ClearOverrideSymbol. I don't know how it would work with custom face, but i guess it could work.

 

 

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