Script 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: Script Help. (/thread-10280.html) |
Script Help. - xdeath - 09-11-2011 This script is that the player steps into an area and hears footsteps running where he can't see. The sounds are to happen at PosNodes that get farther away.So that the sound gets farther away. Unfortunately I can't get any sound to play. Spoiler below!
RE: Script Help. - Your Computer - 09-11-2011 I don't think PosNodes are considered an entity by the game (at least for that function). It should work if you use areas of type Script. RE: Script Help. - GreyFox - 09-12-2011 as YourComputer said I don't think you can use PosNodes for sound Use Script Area's and then for several footsteps, Make Several Script areas and add Timers so right after the first Footsteps noise finishes it playes a little farther a way and so on. -Grey Fox RE: Script Help. - xdeath - 09-12-2011 Right'o about the posnodes, but uh, I tried other things and I can't get the sounds to play. RE: Script Help. - GreyFox - 09-12-2011 Did you try in your script File PlaySoundAtEntity( string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); That's How I Do most of my sounds (Apart from music and Ambient Sounds.) -Grey Fox RE: Script Help. - xdeath - 09-12-2011 did a few touch ups and sounds play now. RE: Script Help. - GreyFox - 09-12-2011 Okay good luck with the rest of your custom story -Grey Fox RE: Script Help. - xdeath - 09-12-2011 Woohoo, it works now. Its pretty creepy sounding too. |