sound script issue - 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: sound script issue (/thread-27790.html) |
sound script issue - G510s - 12-16-2014 void OnStart() { PlayMusic("Search_Brute", true, 5, 3.0, 4, true); AddEntityCollideCallback("Player", "Script", "UseScript", true, 1); AddEntityCollideCallback("Player", "Script_1", "Sound", true, 1); } void Sound(string &in asParent, string &in asChild, int alState) { PlaySoundAtEntity("", "scare_wood_creak.snt", "Player", 1.2, false); } void UseScript(string &in asParent, string &in asChild, int alState) { SetEntityActive("SlenderMan", true); } ------------------------------------------------------------------------------------------------------ this is my script. what can i do to fix it. when i walk into the script area it will not play the sound. RE: sound script issue - Mudbill - 12-16-2014 This looks correct to me. The issue might be something else. Are your script files properly formatted? They will only work in a clean text file. Even if they're named .hps, they might still have an odd format if you used a program like Word or such. Are your in-game names and files matching? For example "Script_1", does that area (?) actually exist and is it named exactly that? You can try to add a debug message (if you have your dev environment set up) and see if the code runs. Maybe you just can't hear the sound. Maybe it's too low or your game sounds are off. RE: sound script issue - G510s - 12-16-2014 (12-16-2014, 12:47 PM)Mudbill Wrote: This looks correct to me. The issue might be something else. I actually don't know how to set up a dev enviroment on windows. how do I do that? RE: sound script issue - Mudbill - 12-16-2014 https://wiki.frictionalgames.com/hpl2/amnesia/devenvguide RE: sound script issue - G510s - 12-16-2014 (12-16-2014, 01:09 PM)Mudbill Wrote: https://wiki.frictionalgames.com/hpl2/amnesia/devenvguide is there anyway i can delete the files fro the dev user? i messed up and need to redo it. i csnt open amnesia. RE: sound script issue - Mudbill - 12-16-2014 Well, you can delete the main_settings.cfg file in your Documents location. It will regenerate when you start the game. |