Jump to content

Recommended Posts

So, i'm writing (trying) a skilltree to Webber, one of the skills that I thougth was adding a extra level to his beard.
I manage to add that extra level and it's functionalities. But i can't figure out how to set it's texture.
this is the code where I set the extra beard. TBH i tryied so many things now that I'm almost giving up.

local function OnGrowSpideryBeard(inst, skinname)
    if not inst.components.skilltreeupdater:IsActivated("webber_spidery_beard") then
        return
    end

	print('[Analytics] OnGrowSpideryBeard')
    if skinname == nil then
        inst.AnimState:OverrideSymbol("beard", "beard_silk", "beardsilk_spidery")
    else
        inst.AnimState:OverrideSkinSymbol("beard", skinname, "beardsilk_spidery" )
    end
    inst.components.beard.bits = BEARD_BITS[4]
end

 

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