![]() |
Scare Event Help - 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: Scare Event Help (/thread-13868.html) Pages:
1
2
|
RE: Scare Event Help - JMFStorm - 03-10-2012 The correct function of the script goes like this: "PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);" The right way to do this is: PlaySoundAtEntity("scratchsound_1", "scare_scratch.snt", "private_room", 0, false); and then: StopSound("scratchsound_1", 0); You didn't have "string& asSoundName" you need to name the sound with a name if you want to make a function to it. And no, the .snt file end is not necessary. RE: Scare Event Help - Stepper321 - 03-10-2012 Also, sounds that are created INSIDE the level editor will repeat over and over, it's for ambiance sound, so if you have any of that, remove it. RE: Scare Event Help - ArcherKiller - 03-10-2012 Thanks for your answers guys. I will give it a try now and will post how it worked. So yeah. Thanks JMFStorm for correction. But still I got this question with sounds. For example in Sounds/Scare folder there is scare_animal_squeal.snt file and 4 different scare_animal_squeal1/2/3/4.ogg files. When in editor I chose to play scare_animal_squeal.snt it will play one of those 4 sound randomly. How can I make it to play a specific sound? I tried to add "scare_animal_squeal1.ogg" in script for sound name, but it didn't work. Any help with this? RE: Scare Event Help - ArcherKiller - 03-11-2012 No one knows? |