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
Quick Sanity Question
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#1
Quick Sanity Question

Whats the code to restore sanity to normal?

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-19-2011, 02:26 AM
Website Find Reply
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Quick Sanity Question

http://wiki.frictionalgames.com/hpl2/amn..._functions

Go down to the "Player" section and you will see it.
08-19-2011, 02:31 AM
Find Reply
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#3
RE: Quick Sanity Question

I tired to find it, but not exactly sure what one to use.

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-19-2011, 02:36 AM
Website Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Quick Sanity Question

SetPlayerSanity(100).

Tutorials: From Noob to Pro
08-19-2011, 02:44 AM
Website Find Reply
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#5
RE: Quick Sanity Question

Thank you kindly! Big Grin

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-19-2011, 03:02 AM
Website Find Reply
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#6
RE: Quick Sanity Question

I want to bump it up for another question.

If you have set your sanity to 70, will it restore back to 100 or the maximum amount is 70 overall?

The Interrogation
Chapter 1

My tutorials
08-27-2011, 02:34 PM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Quick Sanity Question

(08-27-2011, 02:34 PM)Elven Wrote: If you have set your sanity to 70, will it restore back to 100 or the maximum amount is 70 overall?

Think of SetPlayerSanity() as a convenience function, where you don't have to get the current sanity value and add up (or subtract) to the value you want it at. Sanity will still increase up to 100 so long as the player is in the light.

Tutorials: From Noob to Pro
(This post was last modified: 08-27-2011, 02:47 PM by Your Computer.)
08-27-2011, 02:46 PM
Website Find Reply
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#8
RE: Quick Sanity Question

Ok. Thank you. I also went ingame and noticed that sanity also regains pretty slowly Wink.

The Interrogation
Chapter 1

My tutorials
08-27-2011, 02:51 PM
Find Reply




Users browsing this thread: 1 Guest(s)