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
Help with Entity connection with Sanity.
Promethium Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2011
Reputation: 0
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#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
Promethium Offline
Junior Member

Posts: 18
Threads: 6
Joined: Jun 2011
Reputation: 0
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#4
RE: Help with Entity connection with Sanity.

no problem m8 ^^

[Image: 44917299.jpg]Dubstep <3
06-09-2011, 06:58 PM
Find
ferryadams10 Offline
Senior Member

Posts: 288
Threads: 40
Joined: Apr 2011
Reputation: 19
#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




Users browsing this thread: 2 Guest(s)