Jump to content

Recommended Posts

I've had help getting a character that gives a sanity aura based on how sane they are that can become an insanity aura. I want to add something to make the character take on a different skin and speech file while having the insanity aura so that other players can know at a glance that the insanity aura is active, and to either stay away or to help the character restore sanity. And when the insanity aura becomes a sanity aura again, the character's skin and speech goes back to normal.

I assumed it'd be as simple as inputing a skinner code in the code into the sanity aura code

elseif currentSanity > .5 then
		return TUNING.SANITYAURA_SMALL and inst.components.skinner:SetSkinMode("normal_skin", "character")
	elseif currentSanity > .33 then
		return -TUNING.SANITYAURA_SMALL and inst.components.skinner:SetSkinMode("insane_skin", "character_insane")
	elseif currentSanity > .16 then

but it doesn't work. Either I'm missing something, or I'm going about it all wrong.

Link to comment
https://forums.kleientertainment.com/forums/topic/113962-skin-based-off-of-sanity/
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...