Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Entity connection with Sanity.
Author Message
Promethium Offline
Junior Member

Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #1
Help with Entity connection with Sanity.
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 ^-^
(This post was last modified: 06-09-2011 06:16 PM by Promethium.)
06-09-2011 06:07 PM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #2
RE: Help with Entity connection with Sanity.
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
GiveSanityDamage(5.0f, true);
5.0f gives 5sanity.

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

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-09-2011 06:21 PM by xtron.)
06-09-2011 06:20 PM
Find all posts by this user Quote this message in a reply
Promethium Offline
Junior Member

Posts: 18
Joined: Jun 2011
Reputation: 0
Post: #3
RE: Help with Entity connection with Sanity.
(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
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 ^-^
06-09-2011 06:28 PM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #4
RE: Help with Entity connection with Sanity.
no problem m8 ^^

[Image: 44917299.jpg]Dubstep <3
06-09-2011 06:58 PM
Find all posts by this user Quote this message in a reply
ferryadams10 Offline
Senior Member

Posts: 278
Joined: Apr 2011
Reputation: 18
Post: #5
RE: Help with Entity connection with Sanity.
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?

Got a nice sofa
Please come and have a seat for a while

06-09-2011 07:50 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)