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
Drain sanity while looking at something?
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#8
RE: Drain sanity while looking at something?

So first what you're going to do is make a script area to cover the object that drains the person's insanity.
Then you use the
SetEntityPlayerLookAtCallback(string& asName, string& asCallback, bool abRemoveWhenLookedAt); function to check if the player is looking at it. Make sure abRemoveWhenLookedAt is false, and have it call a function that starts a timer function that drains the player's sanity when alState is 1 and removes the timer when alState is -1. You can add in sound effects and screen distortion effects etc too if you would like.

make sense?

(This post was last modified: 09-21-2011, 08:52 PM by Homicide13.)
09-21-2011, 08:52 PM
Find


Messages In This Thread
RE: Drain sanity while looking at something? - by Homicide13 - 09-21-2011, 08:52 PM



Users browsing this thread: 6 Guest(s)