I need a better explanation as to how this works and what I need to do to make it work
I also want a specific thing to happen for this, like in the storyline when Daniel sees something surprising and unnerving, he makes a gasp noise and (from what I remember) the screen FOV goes through a sudden change and back to normal.
I've been doing level design for years, just not for Amnesia. It's far different from hammer. I'm used to everything being a specific function done in the program :p (I mean I'm not used to scripting)
(This post was last modified: 09-23-2015, 02:39 AM by Kyzer.)
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.
void OnStart() { AddEntityCollideCallback("Player", "AreaName", "Sanity", true, 1); //Command that tells the area what happens when you hit the area }
void Sanity(string &in asParent, string &in asChild, int alState) { GiveSanityDamage(15.0f, true); //Command that damages the sanity. Let's just say 15. Let's put true in the effect because why not? FadeSepiaColorTo(1.0f, 0.3f); //Command that turns the screen red. Let's set the time to full effect to 0.3 seconds. FadeImageTrailTo(1.0f, 0.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.)
The GiveSanityDamage is all that is required for the FOV, sound, and loss of sanity. Anyway, I answered your other thread. You should stick to one and not make duplicates.
For the sake of it, I'll just quote my reply here for now.
(09-23-2015, 08:03 AM)Mugbill Wrote: Ah, yes here it is:
(09-23-2015, 08:09 AM)Mugbill Wrote: The GiveSanityDamage is all that is required for the FOV, sound, and loss of sanity. Anyway, I answered your other thread. You should stick to one and not make duplicates.
For the sake of it, I'll just quote my reply here for now.
(09-23-2015, 08:03 AM)Mugbill Wrote: Ah, yes here it is: