Frictional Games Forum (read-only)
GiveSanityBoostSmall not giving any effect. - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: GiveSanityBoostSmall not giving any effect. (/thread-15427.html)



GiveSanityBoostSmall not giving any effect. - pontusry - 05-14-2012

Hey guys, I have a problem that has never occured before which I would like to fix.

GiveSanityBoostSmall(); is not working unless I put SetPlayerSanity(99 or lower); in the OnStart as a start-up setting.


GiveSanityBoostSmall(); has always been working for me whether or not the player currently has 100% sanity.


Do any of you know what's causing this?

NOTE: This is for the first sanityboost for the entire Custom Story itself, therefore this is a huge problem since I can't keep putting SetPlayerSanity(99); then a Sanityboost in every part of the script.


RE: GiveSanityBoostSmall not giving any effect. - Adny - 05-15-2012

If the player's sanity is at max, the blue screen effect/ sound won't occur for the sanity boost.


RE: GiveSanityBoostSmall not giving any effect. - Putmalk - 05-18-2012

andyrockin123 is correct, and shouldn't that be in the Dev. Support forum. O_o