Frictional Games Forum (read-only)

Full Version: Insanity effects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How exactly are insanity effect triggered? Do they occur randomly when your sanity is low enough, or do they have to be triggered by script/the insanity area etc.
here's how it works. When your sanity is low (below 30 i think) daniel starts to get really hard to control, and he starts breathing heavy... When it gets to 0, he falls to the ground, and that ringing noise plays (I'm sure you are already aware of the above) - These are the only two effects which are activated automatically.

In Level Editor -> areas -> insanity you can place a box. when you collide with this box, an insanity effect will play, depending on the settings.

In your .hps file you can use 'StartRandomInsanityEvent' - as the name implies, the effect is completely random, and could be cochroaches on screen, red screen, or daniel saying something random. Since you probably don't want a completely random effect, the best way to do it is to simulate the effect with other script functions.