Jump to content

Recommended Posts

1 hour ago, IThatGuyI said:

inst.components.sanity:GetSanity() or inst.components.sanity:GetPercent(). I'm not currently on my pc so I'm not totally sure but you can see sanity functions in scripts/components/sanity.lua

From what I can tell after looking at sanity.lua, there isn't a method for GetSanity(), however GetPercent() does exist and suffices for my uses, thank you!

  • Like 1
5 hours ago, IThatGuyI said:

Yeah, I see it now. Although the current sanity can be refered to by using this:


inst.components.sanity.current

 

Good to know for future reference. I wish there was an official API documentation for this stuff.

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