Frictional Games Forum (read-only)

Full Version: Help with Entity connection with Sanity.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey there, I'm trying to make a custom story and what i want to happen is....
Like the main game, when the Players sanity is low, pictures change and corpses can be seen. What sort of scripting do I need for that??
Much appreciated if you know ^-^
If you select an item like some corps if you go to the entity tab you can check the "sanity" (or something) box and set how much sanity you need to have for the corps to be seen. Not all items got the sanity box ^^ but many dose.

But ofc you need scripts so the sanity lowers
Code:
GiveSanityDamage(5.0f, true);
5.0f gives 5sanity.

I think that's the right code for sanity, if not please correct me.
(06-09-2011, 06:20 PM)xtron Wrote: [ -> ]If you select an item like some corps if you go to the entity tab you can check the "sanity" (or something) box and set how much sanity you need to have for the corps to be seen. Not all items got the sanity box ^^ but many dose.

But ofc you need scripts so the sanity lowers
Code:
GiveSanityDamage(5.0f, true);
5.0f gives 5sanity.

I think that's the right code for sanity, if not please correct me.

Thank you very much, it works now, really helpful, thanks ^-^
no problem m8 ^^
Btw did anyone knew that if u set the bool abEffects to true that that is the bonggg u hear in the origin story when seeying something scary?