Jump to content

Help coding my character


Recommended Posts

Hello, I'm now attempting to code my character. My game crashes now. I need help with it. Can someone pass me up some advice or something.

1. Gains a little sanity when eating food.

2. Always has a jacket on.

3. Clockwork allies,  but Bunnymanphobia. - bunnymen will attack on sight and you lose sanity.

Edited by Showbizharbor9
Link to comment
Share on other sites

How can I add a insanity effect around bunny men. I was thinking of using thing

    elseif self.inducedinsanity_sources ~= nil then
        self.inducedinsanity_sources[src] = nil
        if next(self.inducedinsanity_sources) == nil then
            self.inducedinsanity_sources = nil

But Im not sure still. You guys know more than me.

Link to comment
Share on other sites

Only for your character?

 inst:AddComponent("sanityaura")

inst.components.sanityaura.aurafn=function(inst, observer)

    if observer.prefab=="your character" then

        return -TUNING.SANITYAURA_SMALL

    end

    return 0

end

Link to comment
Share on other sites

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
 Share

×
  • Create New...