Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Player doesn't drain sanity from darkness
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#11
RE: Player doesn't drain sanity from darkness

SetSanityDrainDisabled(true);


Other people have been helped by this function. Did you try it?
I understand what you want. This function should stop the sanity from draining in darkness

Trying is the first step to success.
(This post was last modified: 01-23-2013, 03:12 PM by FlawlessHappiness.)
01-23-2013, 03:11 PM
Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#12
RE: Player doesn't drain sanity from darkness

The function works. But there's a bug or something, when I quit to main menu to play other CS, I didn't drain any sanity from the darkness and I just play the whole CS without draining sanity. When I quit the game to my desktop and play at the CS again, I could drain sanity from darkness. Is it a bug or something ?

[Image: the-cabin-in-the-woods-masked-people.jpg]
01-24-2013, 03:24 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#13
RE: Player doesn't drain sanity from darkness

(01-24-2013, 03:24 AM)TheNoAuthor12 Wrote: Is it a bug or something ?

Depends. What map did you use the function in and which map are you loading when you start the story? Putting SetSanityDrainDisabled in global.hps would be a better spot.

Tutorials: From Noob to Pro
01-24-2013, 08:40 AM
Website Find
No Author Offline
Posting Freak

Posts: 962
Threads: 10
Joined: Jun 2012
Reputation: 13
#14
RE: Player doesn't drain sanity from darkness

It works now. Thanks

[Image: the-cabin-in-the-woods-masked-people.jpg]
01-24-2013, 10:07 AM
Find




Users browsing this thread: 2 Guest(s)