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
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#7
RE: Player doesn't drain sanity from darkness

From what I've seen, it works (darkens doesn't drain) when there are no monsters around, or when the monsters are initially unaware of your presence; it wont, however, stop sanity drain caused by looking at a monster.

If there are monsters behind obstacles, at unreachable places, then you can put a plane with a completely transparent texture in front of them (just make sure it's facing the right way) which will stop the engine from detecting that the Player is looking at an enemy, and then you can use collide callbacks and timers to simulate sanity drain when the player is in a specific area.
01-21-2013, 05:38 PM
Find


Messages In This Thread
RE: Player doesn't drain sanity from darkness - by TheGreatCthulhu - 01-21-2013, 05:38 PM



Users browsing this thread: 1 Guest(s)