Help for my custom story - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Help for my custom story (/thread-8995.html) |
Help for my custom story - narutohokager - 07-07-2011 Hi People I need help to do my custom story, When the map started, i want have a sound, and after that, another sound. Is it possible? (I want to make a sound that says that someone locked the door) And I will also be a time when the player looks at a door stop after watching, and the door closes violently. Can anyone help me? Thank. (Sorry for my bad english) RE: Help for my custom story - Paulpolska - 07-07-2011 Code: void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume); After the player is in area (for example of course) you set music. That's all RE: Help for my custom story - narutohokager - 07-07-2011 Music? No, I want her playing a 2 sounds one after the other. But I do not know if such a code is able to walk. Code: void PlaySoundAtEnter RE: Help for my custom story - Khyrpa - 07-07-2011 Code: void OnStart() when game starts, that first sound comes out and then 2 seconds after the next RE: Help for my custom story - narutohokager - 07-07-2011 Hey Thank its working Now I want to do at the beginning of the map there is a black screen and it disappears slowly. Its possible ? Thank EDIT: I also want the command to close a door violently, Thank. RE: Help for my custom story - narutohokager - 07-09-2011 Anyone can help me ? RE: Help for my custom story - Kyle - 07-09-2011 Well look, we're not hear to full you on every single one of your needs. You might as well learn the proper way. Here you go. You better thank me, you should bookmark this: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions FadeOut(0); FadeIn(5); That's all I'll give you. -_- RE: Help for my custom story - Khyrpa - 07-09-2011 These into onstart: FadeOut(0); FadeIn(5.0f); 5 second fade in to close a door: SetSwingDoorClosed("yourdoorsname", true, false); RE: Help for my custom story - Kyle - 07-09-2011 (07-09-2011, 06:37 PM)Khyrpa Wrote: These into onstart: I don't think the SetSwingDoorClosed will work. You need to have a prop force/impulse for it to work. RE: Help for my custom story - narutohokager - 07-10-2011 Thank you for your help I will try it. |