. . . Posted October 28, 2016 Share Posted October 28, 2016 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 ! Link to comment https://forums.kleientertainment.com/forums/topic/71221-question-about-animstateoverridesymbol/ Share on other sites More sharing options...
. . . Posted October 29, 2016 Author Share Posted October 29, 2016 bump Link to comment https://forums.kleientertainment.com/forums/topic/71221-question-about-animstateoverridesymbol/#findComment-830715 Share on other sites More sharing options...
Lumina Posted October 29, 2016 Share Posted October 29, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/71221-question-about-animstateoverridesymbol/#findComment-830742 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now