Frictional Games Forum (read-only)
How Do I trigger a sound file at a specific area? - 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: How Do I trigger a sound file at a specific area? (/thread-12485.html)



How Do I trigger a sound file at a specific area? - kartanonperuna - 01-09-2012

So I want it to be like:The player walks into this area,and theres a guy who starts talking.Now how do I do this?


RE: How Do I trigger a sound file at a specific area? - flamez3 - 01-09-2012

Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Sound", true, 1;
}

void Sound(sting &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
}
Please, head over here: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#player

It will tell you what you how and what you need to do what you want. Research is key.


RE: How Do I trigger a sound file at a specific area? - BlueFury - 01-09-2012

These scripts can be easily made with the wiki.
Please stop making threads