Insanity Areas - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Insanity Areas (/thread-6416.html) |
Insanity Areas - Viperdream - 01-29-2011 Hi. I only learned to script things a few days ago. I'm making progress, but that doesn't mean that I can already do everything So what I was wondering is, when the player enters an Insanity Area. How do I make him breath loud and do the screen vibration like in the game? I'm trying to make a case that the player finds out that the monster has escaped and gets quite a shock from it. I've searched in the files of the original game, done a search on the forums and wiki. Yet I can't find any solution. Thanks. RE: Insanity Areas - rmdashrf - 01-29-2011 Code: void StartScreenShake(float afAmount, float afTime, float afFadeInTime,float afFadeOutTime); For breathing, Amnesia uses timers. A good map for reference is the Cellar Archives, take a look at that. Code: void TimerPlayerReact(string &in asTimer) RE: Insanity Areas - Frontcannon - 01-29-2011 Well, not really. PlayGuiSound / PlaySoundAtEntity would be what Viperdream is looking for, the chase sequence is something of a different kind. RE: Insanity Areas - Viperdream - 01-29-2011 Thanks for the replies, I'll try it out and see what happens EDIT: Do I apply these scripts the same way as a normal area script? |