Jump to content

Recommended Posts

So I'm quite new to coding, let alone using LUA. I can't figure out how to make my character not lose sanity from player ghosts. I also need help with making the ghost mobs neutral towards my character like spiders are to Webber.

 

Thanks for reading!

On 9/20/2022 at 9:23 PM, SunRiver said:

--in your character.lua 

function master_postinit(inst)

     --not lose sanity from player ghosts.

      inst.components.sanity:SetPlayerGhostImmunity(true)

end

Thank you so much! this helped a lot, I can't believe it was this simple.

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