Jump to content

Need help with creating a cowardly char


Recommended Posts

Hello!

Guys, I'm editing an old mod that adds a custom character. In turn, this character, according to the idea of the author, is very cowardly.

I need a little help in writing the function ScaredyCat(inst), which would increase the losses of the character's sanity if he sees some kind of "terrible thing" (monsters, nightmares, bosses, wormholes, etc.).

As far as I know, for the losses of the character's sanity, the inst.components.sanityaura parameter, which is tied to monsters, answers.

So, is it realistic to implement the idea without affecting the code of monsters? If so, I ask for your help, advice, lines.

Thank you in advance for your cooperation.

P.S. English is not my mother tongue, so sorry for my illiteracy.

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