Jump to content

Recommended Posts

I'm new here, so I apologize if there's already a thread about this that I missed.

 

So what my problem is that I'm making a Gandalf character mod, and he needs a full grown beard. I've tried using Wilsons beard code and change it but it never seems to appear or it crashes the game.

Can someone be so kind and help? :wilson_bearded:

make sure beard.zip (or the beard you are using) is in the assets!

 

want it shaveable?

    inst:AddComponent("beard")
    inst.components.beard.onreset = OnResetBeard
    inst.components.beard.prize = "beardhair"
    inst.components.beard:AddCallback(BEARD_DAYS[1], OnGrowShortBeard)
    inst.components.beard:AddCallback(BEARD_DAYS[2], OnGrowMediumBeard)
    inst.components.beard:AddCallback(BEARD_DAYS[3], OnGrowLongBeard)
    OnGrowLongBeard()
    --this proooobably won't work and might make him grow a beard everytime you start up the server
 
don't want it shaveable?
inst.AnimState:OverrideSymbol("beard", "beard", "beard_long") --this is all you need!

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