Jump to content

Help in the aura


Recommended Posts

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

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

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
 Share

×
  • Create New...