Jump to content

Sanity through specific emote?

Recommended Posts

One of my characters can give players sanity by doing emotes in general but I wanted it to be more specific this time. Specifically, the sitting emote and over time(like 5 sanity per second while sitting), how would I approach that? Much thanks to anyone who chimes in!

Heres what I have initially:

    inst:ListenForEvent("emote", function(inst, data)
        if inst:HasTag("cheery") then

            for k, v in pairs(AllPlayers) do
                if v ~= inst and v:IsNear(inst, 16) and v.components.sanity then

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

  • Create New...