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
Sanity hit when looking at area
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Sanity hit when looking at area

I think that you could use AddEntityCollideCallback that binds to the area and use the Sepia and Trail screen effects with PlaySound and some Sanity damage to do sort of the same thing although I'm not quite sure.

Example:
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""AreaName""Sanity"true1); //Command that tells the area what happens when you hit the area
}

void Sanity(string &in asParentstring &in asChildint alState)
{
GiveSanityDamage(15.0ftrue); //Command that damages the sanity. Let's just say 15. Let's put true in the effect because why not?
FadeSepiaColorTo(1.0f0.3f); //Command that turns the screen red. Let's set the time to full effect to 0.3 seconds.
FadeImageTrailTo(1.0f0.3f); //Command that sort of gets a trail effect. Let's put the same thing as FadeSepia but you can edit that.
PlayGuiSound("gasp.snt"1.0f); //Command that gives the sound. Now I AM NOT SURE WHAT THE FILE IS, but you can search the Amnesia sound directory to find the appropriate sound. Make sure you put .snt after the name as the original command demands it.



This is just an example as I haven't tested it out yet and I made this on the spot.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 09-23-2015, 07:57 AM by PutraenusAlivius.)
09-23-2015, 07:56 AM
Find


Messages In This Thread
Sanity hit when looking at area - by Kyzer - 09-23-2015, 02:35 AM
RE: Sanity hit when looking at area - by PutraenusAlivius - 09-23-2015, 07:56 AM
RE: Sanity hit when looking at area - by Mudbill - 09-23-2015, 08:09 AM
RE: Sanity hit when looking at area - by Kyzer - 09-25-2015, 02:15 AM
RE: Sanity hit when looking at area - by Mudbill - 09-25-2015, 07:31 AM



Users browsing this thread: 1 Guest(s)