Frictional Games Forum (read-only)
Help with Entity connection with Sanity. - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Help with Entity connection with Sanity. (/thread-8515.html)



Help with Entity connection with Sanity. - Promethium - 06-09-2011

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


RE: Help with Entity connection with Sanity. - xtron - 06-09-2011

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.


RE: Help with Entity connection with Sanity. - Promethium - 06-09-2011

(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 ^-^



RE: Help with Entity connection with Sanity. - xtron - 06-09-2011

no problem m8 ^^


RE: Help with Entity connection with Sanity. - ferryadams10 - 06-09-2011

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?