Vull Posted April 18, 2017 Share Posted April 18, 2017 If there are other characters nearby, then their mind is reduced. My character is demon ) Link to comment Share on other sites More sharing options...
HomShaBom Posted April 18, 2017 Share Posted April 18, 2017 inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -TUNING.SANITYAURA_HUGE Link to comment Share on other sites More sharing options...
Vull Posted April 21, 2017 Author Share Posted April 21, 2017 On 18.04.2017 at 7:20 PM, HomShaBom said: inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -TUNING.SANITYAURA_HUGE That the sainity was raised it is necessary to write so? inst:AddComponent("sanityaura") inst.components.sanityaura.aura = +TUNING.SANITYAURA_HUGE Link to comment Share on other sites More sharing options...
mrboosch Posted May 5, 2017 Share Posted May 5, 2017 Hello Vull, The value of TUNING.SANITYAURA_HUGE is a positive value. Because of this, you add a "-" symbol to negate it. you could have written HomShaBom's code as inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -1 * TUNING.SANITYAURA_HUGE So, if you want the character to make other characters more sane, you simply don't include the -1 (or the "-" symbol) at all. So the answer to your question is you do not need the '+' symbol, just write: inst:AddComponent("sanityaura") inst.components.sanityaura.aura = TUNING.SANITYAURA_HUGE -- alternatively, if you want him to make other characters VERY sane, use a multiplier like: -- inst.components.sanityaura.aura = 4 * TUNING.SANITYAURA_HUGE Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now